* also define GDB_CVS if version contains cvs substring

git-svn-id: trunk@14381 -
This commit is contained in:
pierre 2009-12-09 23:43:02 +00:00
parent 08f3fdd828
commit c02c000ddb

View File

@ -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 }"
}