Module Name:    src
Committed By:   plunky
Date:           Tue Feb  1 20:28:11 UTC 2011

Modified Files:
        src/external/bsd/pcc: prepare-import.sh

Log Message:
pcc-current provides a DATESTAMP file, handle that rather than guessing


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/external/bsd/pcc/prepare-import.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/bsd/pcc/prepare-import.sh
diff -u src/external/bsd/pcc/prepare-import.sh:1.1 src/external/bsd/pcc/prepare-import.sh:1.2
--- src/external/bsd/pcc/prepare-import.sh:1.1	Thu Jun  3 19:17:22 2010
+++ src/external/bsd/pcc/prepare-import.sh	Tue Feb  1 20:28:10 2011
@@ -54,12 +54,13 @@
 # modify the PACKAGE_STRING to include the checkout date
 # define PREPROCESSOR as pcpp to avoid conflicts with GCC
 #
+datestamp=$(cat work/pcc/DATESTAMP)
 sed -e "s,^\(#define[[:space:]]*VERSSTR[[:>:]].*\)\$,/* \1 */,"					\
     -e "s,^\(#define[[:space:]]*HOST_BIG_ENDIAN[[:>:]].*\)\$,/* \1 */,"				\
     -e "s,^\(#define[[:space:]]*HOST_LITTLE_ENDIAN[[:>:]].*\)\$,/* \1 */,"			\
     -e "s,^\(#define[[:space:]]*TARGET_BIG_ENDIAN[[:>:]].*\)\$,/* \1 */,"			\
     -e "s,^\(#define[[:space:]]*TARGET_LITTLE_ENDIAN[[:>:]].*\)\$,/* \1 */,"			\
-    -e "s,^\(#define[[:space:]]*PACKAGE_STRING[[:>:]].*\".*\)\(\".*\)\$,\1 [$(date +%Y%m%d)]\2,"\
+    -e "s,^\(#define[[:space:]]*PACKAGE_STRING[[:>:]].*\".*\)\(\".*\)\$,\1 [${datestamp}]\2,"	\
     -e "s,^\(.*[[:<:]]PREPROCESSOR[[:>:]].*\)\$,#define PREPROCESSOR \"pcpp\","			\
     < work/tmp/config.h > work/config.h
 
@@ -77,6 +78,6 @@
 echo ""
 echo "after testing, use the following command to import from the dist directory,"
 echo ""
-echo "    cvs import src/external/bsd/pcc/dist ragge pcc-$(date +%y%m%d)"
+echo "    cvs import src/external/bsd/pcc/dist ragge pcc-${datestamp}"
 echo ""
 echo "providing a ChangeLog in the commit message."

Reply via email to