[Clfs-commits] commit: r4744 - in /trunk/scripts/patch: binutils-patch.sh gcc-patch.sh

svn at cross-lfs.org svn at cross-lfs.org
Sat Feb 21 00:13:13 PST 2009


Author: jim
Date: Sat Feb 21 08:13:12 2009
New Revision: 4744

Log:
Patch Cleanup Updates

Modified:
    trunk/scripts/patch/binutils-patch.sh
    trunk/scripts/patch/gcc-patch.sh

Modified: trunk/scripts/patch/binutils-patch.sh
==============================================================================
--- trunk/scripts/patch/binutils-patch.sh (original)
+++ trunk/scripts/patch/binutils-patch.sh Sat Feb 21 08:13:12 2009
@@ -81,7 +81,9 @@
 cd /usr/src/binutils-${SOURCEVERSION}
 sed -i "s:@PKGVERSION@:(GNU Binutils for Cross-LFS) :" bfd/Makefile.in
 sed -i "s:^[[:space:]]VERSION=\(.*\)$:VERSION=\1.${DATE_STAMP}:g" bfd/configure
+
 # Cleanliness is the name of my game!
+#
 unset DATE_STAMP
 
 # Create Patch

Modified: trunk/scripts/patch/gcc-patch.sh
==============================================================================
--- trunk/scripts/patch/gcc-patch.sh (original)
+++ trunk/scripts/patch/gcc-patch.sh Sat Feb 21 08:13:12 2009
@@ -44,7 +44,11 @@
 svn export svn://gcc.gnu.org/svn/gcc/branches/gcc-${FIXEDVERSION}-branch gcc-${VERSION}
 
 # Add a custom version string
-sed -i "s:PKGVERSION:\"(Cross-LFS - Branch Update ${PATCH_NUM}) \":" gcc-${VERSION}/gcc/version.c
+#
+DATE_STAMP="`date +%Y%m%d`"
+sed -i "s:PKGVERSION:\"(GCC for Cross-LFS) \":" gcc-${VERSION}/gcc/version.c
+BASE_VER=$(cat gcc-${VERSION}/gcc/BASE-VER}
+echo "${BASE_VER} - ${DATE_STAMP}" > gcc-${VERSION}/gcc/BASE-VER
 
 # Cleanup
 DIRS="gcc-${VERSION} gcc-${VERSION}.orig"




More information about the Clfs-commits mailing list