ref: b9f92536a9bce4a28e61a9a0e011d316e001ec34
parent: 7384c41c82f12268dfc9161b82b5d9165f504150
author: Anthony J. Bentley <[email protected]>
date: Wed Dec 22 09:26:43 EST 2010
Remove “localversion” script.
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,5 @@
-localversion = $(shell sh scripts/localversion.sh)
-
-CFLAGS += -Wall -Iinclude -Iinclude/asm/gameboy \
- -DLOCALVERSION=\"$(localversion)\" -g -std=c99 \
- -D_POSIX_C_SOURCE=200112L
+CFLAGS += -Wall -Iinclude -Iinclude/asm/gameboy -g -std=c99 \
+ -D_POSIX_C_SOURCE=200112L
yacc_pre := \
src/asm/yaccprt1.y\
--- a/include/asmotor.h
+++ b/include/asmotor.h
@@ -11,7 +11,7 @@
#define ASMOTOR
-#define ASMOTOR_VERSION "1.10-linux" LOCALVERSION
+#define ASMOTOR_VERSION "1.10-linux"
#define ASM_VERSION "1.08c"
#define LINK_VERSION "1.06c"
--- a/scripts/localversion.sh
+++ /dev/null
@@ -1,21 +1,0 @@
-#!/bin/sh
-
-#
-# Use git to figure out which version we are using.
-#
-# Adapted from a script written by Rene Scharfe <[email protected]>,
-# found in the Linux Kernel.
-#
-
-set -u
-
-if head=`git rev-parse --verify --short HEAD 2>/dev/null`; then
- printf '%s%s' -g $head
-
- git update-index --refresh --unmerged > /dev/null
- if git diff-index --name-only HEAD | read dummy; then
- printf '%s' -dirty
- fi
-
- exit
-fi