Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/pcc pcc-current provides a DATESTAMP file, hand...
details: https://anonhg.NetBSD.org/src/rev/e2790cb9254a
branches: trunk
changeset: 761582:e2790cb9254a
user: plunky <plunky%NetBSD.org@localhost>
date: Tue Feb 01 20:28:10 2011 +0000
description:
pcc-current provides a DATESTAMP file, handle that rather than guessing
diffstat:
external/bsd/pcc/prepare-import.sh | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 02259d446914 -r e2790cb9254a external/bsd/pcc/prepare-import.sh
--- a/external/bsd/pcc/prepare-import.sh Tue Feb 01 20:20:19 2011 +0000
+++ b/external/bsd/pcc/prepare-import.sh Tue Feb 01 20:28:10 2011 +0000
@@ -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."
Home |
Main Index |
Thread Index |
Old Index