Browse Source

* also define GDB_CVS if version contains cvs substring

git-svn-id: trunk@14381 -
pierre 15 years ago
parent
commit
c02c000ddb
1 changed files with 5 additions and 1 deletions
  1. 5 1
      packages/gdbint/gen-gdblib-inc.sh

+ 5 - 1
packages/gdbint/gen-gdblib-inc.sh

@@ -21,6 +21,7 @@ echo "Rebuilding gdb${EXEEXT}"
 make gdb${EXEEXT} | tee make.log
 
 gdb_full_version=`sed -n "s:.*version.*\"\(.*\)\".*:\1:p" version.c`
+gdbcvs=`sed -n "s:.*version.*\"\(.*\)cvs\(.*\)\".*:\1cvs\2:p" version.c`
 gdb_version1=`sed -n "s:.*version.*\"\([0-9]*\)\.\([0-9]*\).*:\1:p" version.c`
 gdb_version2=`sed -n "s:.*version.*\"\([0-9]*\)\.\([0-9]*\).*:\2:p" version.c`
 gdb_version=`sed -n "s:.*version.*\"\([0-9]*\)\.\([0-9]*\).*:\1.\2:p" version.c`
@@ -101,11 +102,14 @@ chmod u+x ./copy-libs.sh
 
 echo Creating ./gdblib.inc file
 # Generate gdblib.inc file
-cat comp-cmd.log |gawk -v destdir=${destdir} -v gdbversion=${gdbversion} '
+cat comp-cmd.log |gawk -v gdbcvs=${gdbcvs} -v destdir=${destdir} -v gdbversion=${gdbversion} '
 BEGIN {
   use_mingw=0;
   print "{ libgdb.inc file generated by awk script }"
   print "{$define GDB_V" gdbversion " }"
+  if (gdbcvs) {
+    print "{$define GDB_CVS}"
+  }
   print "{$ifdef COMPILING_GDBINT_UNIT }"
 }