[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MiNT] [PATCH] Remove xversion.sh script in USB and ext2fs directories



This patch removes the script that generates xversion.h header file,
which defines BDATETIME with the date from the newest source file in
the directory, this header isn't used by USB or ext2fs code. It's
there because the heritage from xaaes multitarget module build. I
think it should be removed to simplify the source tree.

Commit message:

Remove xhversion.sh script from USB and ext2fs directories.
diff -r 73e5ecefa983 -r 04b3bcdb1663 sys/usb/src.km/.cvsignore
--- a/sys/usb/src.km/.cvsignore	Tue Sep 29 10:58:12 2015 +0200
+++ b/sys/usb/src.km/.cvsignore	Tue Sep 29 11:21:36 2015 +0200
@@ -1,2 +1,2 @@
 .compile_*
-xversion.h
+
diff -r 73e5ecefa983 -r 04b3bcdb1663 sys/usb/src.km/Makefile
--- a/sys/usb/src.km/Makefile	Tue Sep 29 10:58:12 2015 +0200
+++ b/sys/usb/src.km/Makefile	Tue Sep 29 11:21:36 2015 +0200
@@ -25,7 +25,7 @@
 # default definitions
 compile_all_dirs = .compile_*
 GENFILES = $(compile_all_dirs) *.km
-SGENFILES = xversion.h
+SGENFILES =
 
 
 help:
@@ -48,12 +48,9 @@
 		|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
 	done && test -z "$$fail"
 
-$(usbtargets): xversion.h
+$(usbtargets):
 	$(MAKE) buildusb usb=$@
 
-xversion.h: $(SRCFILES)
-	$(SHELL) xversion.sh $@ $?
-
 #
 # multi target stuff
 #
diff -r 73e5ecefa983 -r 04b3bcdb1663 sys/usb/src.km/xversion.sh
--- a/sys/usb/src.km/xversion.sh	Tue Sep 29 10:58:12 2015 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,21 +0,0 @@
-#find newest source-file in $2-$N and generate $1 with BDATETIME accordingly
-
-if [ $# -le 1 ]
-then
-	echo "usage: $0 target file ..."
-	exit 1
-fi
-
-TARGET=$1
-shift
-
-if [ $# -gt 1 ]
-then
-	FILES=`ls -t $*`
-	set $FILES
-fi
-
-echo making for: $1
-
-D=`date -r $1 "+%b %e %Y %H:%M"`
-echo \#define BDATETIME \"$D\" >$TARGET
diff -r 73e5ecefa983 -r 04b3bcdb1663 sys/xfs/ext2fs/Makefile
--- a/sys/xfs/ext2fs/Makefile	Tue Sep 29 10:58:12 2015 +0200
+++ b/sys/xfs/ext2fs/Makefile	Tue Sep 29 11:21:36 2015 +0200
@@ -25,7 +25,7 @@
 # default definitions
 compile_all_dirs = .compile_*
 GENFILES = $(compile_all_dirs) *.xfs
-SGENFILES = xversion.h
+SGENFILES =
 
 
 help:
@@ -48,12 +48,9 @@
 		|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
 	done && test -z "$$fail"
 
-$(ext2targets): xversion.h
+$(ext2targets):
 	$(MAKE) buildext2 ext2=$@
 
-xversion.h: $(SRCFILES)
-	$(SHELL) xversion.sh $@ $?
-
 #
 # multi target stuff
 #
diff -r 73e5ecefa983 -r 04b3bcdb1663 sys/xfs/ext2fs/xversion.sh
--- a/sys/xfs/ext2fs/xversion.sh	Tue Sep 29 10:58:12 2015 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,21 +0,0 @@
-#find newest source-file in $2-$N and generate $1 with BDATETIME accordingly
-
-if [ $# -le 1 ]
-then
-	echo "usage: $0 target file ..."
-	exit 1
-fi
-
-TARGET=$1
-shift
-
-if [ $# -gt 1 ]
-then
-	FILES=`ls -t $*`
-	set $FILES
-fi
-
-echo making for: $1
-
-D=`date -r $1 "+%b %e %Y %H:%M"`
-echo \#define BDATETIME \"$D\" >$TARGET