diff options
author | Tom Tromey <tom@tromey.com> | 2019-01-21 23:03:23 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-01-25 15:28:16 -0700 |
commit | 2f5c153e0ce1b0d3aa0c12724cbc8c3b11d4095f (patch) | |
tree | 903bb7941bf8db6bd039ec6a4e0a6eb769e4674a /gdb | |
parent | e10620d3b96a725c4752198cb3c7c00ea21b42b4 (diff) | |
download | gdb-2f5c153e0ce1b0d3aa0c12724cbc8c3b11d4095f.zip gdb-2f5c153e0ce1b0d3aa0c12724cbc8c3b11d4095f.tar.gz gdb-2f5c153e0ce1b0d3aa0c12724cbc8c3b11d4095f.tar.bz2 |
Update create-version.sh to use common/version.h
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.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rwxr-xr-x | gdb/common/create-version.sh | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1a3a2ed..d319a15 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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) diff --git a/gdb/common/create-version.sh b/gdb/common/create-version.sh index 51cffe8..6e67a61 100755 --- a/gdb/common/create-version.sh +++ b/gdb/common/create-version.sh @@ -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 |