Update create-version.sh to use common/version.h
authorTom Tromey <tom@tromey.com>
Tue, 22 Jan 2019 06:03:23 +0000 (23:03 -0700)
committerTom Tromey <tom@tromey.com>
Fri, 25 Jan 2019 22:28:16 +0000 (15:28 -0700)
This changes create-version.sh to have the generated file use
common/version.h as the file name.

gdb/ChangeLog
2019-01-25  Tom Tromey  <tom@tromey.com>

* common/create-version.sh: Use common/version.h.

gdb/ChangeLog
gdb/common/create-version.sh

index 1a3a2ed8c32ba272dc9f81608251f2a0a389b5b8..d319a15cfb693def1e29705c30b570810767bd06 100644 (file)
@@ -1,3 +1,7 @@
+2019-01-25  Tom Tromey  <tom@tromey.com>
+
+       * common/create-version.sh: Use common/version.h.
+
 2019-01-24  Pedro Alves  <palves@redhat.com>
 
        * infrun.c (signal_stop, signal_print, signal_program)
index 51cffe8db5f268f9439316c4f60a4cac2b618bd1..6e67a613570e9eea20d458ef190c6de93b62de00 100755 (executable)
@@ -30,7 +30,7 @@ output="$4"
 rm -f version.c-tmp $output version.tmp
 date=`sed -n -e 's/^.* BFD_VERSION_DATE \(.*\)$/\1/p' $srcdir/../bfd/version.h`
 sed -e "s/DATE/$date/" < $srcdir/version.in > version.tmp
-echo '#include "version.h"' >> version.c-tmp
+echo '#include "common/version.h"' >> version.c-tmp
 echo 'const char version[] = "'"`sed q version.tmp`"'";' >> version.c-tmp
 echo 'const char host_name[] = "'"$host_alias"'";' >> version.c-tmp
 echo 'const char target_name[] = "'"$target_alias"'";' >> version.c-tmp