[Clfs-commits] commit: r4699 - /trunk/scripts/patch/gcc-patch.sh

svn at cross-lfs.org svn at cross-lfs.org
Mon Feb 16 13:07:46 PST 2009


Author: eikniw
Date: Mon Feb 16 21:07:46 2009
New Revision: 4699

Log:
Add a version string when generating GCC patches

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

Modified: trunk/scripts/patch/gcc-patch.sh
==============================================================================
--- trunk/scripts/patch/gcc-patch.sh (original)
+++ trunk/scripts/patch/gcc-patch.sh Mon Feb 16 21:07:46 2009
@@ -43,6 +43,9 @@
 FIXEDVERSION=$(echo -n "$NUM1" ; echo -n "_" ; echo -e "$NUM2")
 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 ${PATCHNUM})\":" gcc-${VERSION}/gcc/version.c
+
 # Cleanup
 DIRS="gcc-${VERSION} gcc-${VERSION}.orig"
 for DIRECTORY in ${DIRS}; do




More information about the Clfs-commits mailing list