aboutsummaryrefslogtreecommitdiff
path: root/gdb/common
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2013-07-04 01:22:38 +0000
committerYao Qi <yao@codesourcery.com>2013-07-04 01:22:38 +0000
commitbd88542004361085d0345b795e112dc9022cce24 (patch)
tree3939056794c5455ced466b3843c509e40b8ec770 /gdb/common
parent0220e44b4ce2c602670ea0acdfca7dbbb9b597f5 (diff)
downloadgdb-bd88542004361085d0345b795e112dc9022cce24.zip
gdb-bd88542004361085d0345b795e112dc9022cce24.tar.gz
gdb-bd88542004361085d0345b795e112dc9022cce24.tar.bz2
gdb/
2013-07-04 Yao Qi <yao@codesourcery.com> Revert: 2013-06-27 Yao Qi <yao@codesourcery.com> * common/create-version.sh: Update comments. Handle the case that TARGET_ALIAS is empty. gdb/gdbserver/ 2013-07-04 Yao Qi <yao@codesourcery.com> * Makefile.in (host_alias): Use @host_noncanonical@. (target_alias): Use @target_noncanonical@. * configure.ac: Use ACX_NONCANONICAL_TARGET and ACX_NONCANONICAL_HOST. * configure: Regenerated. Revert: 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com> * configure.ac (version_host, version_target): Set and AC_SUBST them. * configure: Rebuild. * Makefile.in (version_host, version_target): Get from configure. (version.c): Use $(version_host) and $(version_target).
Diffstat (limited to 'gdb/common')
-rwxr-xr-xgdb/common/create-version.sh17
1 files changed, 4 insertions, 13 deletions
diff --git a/gdb/common/create-version.sh b/gdb/common/create-version.sh
index 0bdd0fd..ad50946 100755
--- a/gdb/common/create-version.sh
+++ b/gdb/common/create-version.sh
@@ -20,17 +20,12 @@
# Create version.c from version.in.
# Usage:
# create-version.sh PATH-TO-GDB-SRCDIR HOST_ALIAS \
-# [TARGET_ALIAS] OUTPUT-FILE-NAME
+# TARGET_ALIAS OUTPUT-FILE-NAME
srcdir="$1"
host_alias="$2"
-
-if [ "$#" = "4" ]; then
- target_alias="$3"
- output="$4"
-else
- output="$3"
-fi
+target_alias="$3"
+output="$4"
rm -f version.c-tmp $output version.tmp
date=`sed -n -e 's/^.* BFD_VERSION_DATE \(.*\)$/\1/p' $srcdir/../bfd/version.h`
@@ -38,10 +33,6 @@ sed -e "s/DATE/$date/" < $srcdir/version.in > version.tmp
echo '#include "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
-
-if [ "$#" = "4" ]; then
- echo 'const char target_name[] = "'"$target_alias"'";' >> version.c-tmp
-fi
-
+echo 'const char target_name[] = "'"$target_alias"'";' >> version.c-tmp
mv version.c-tmp $output
rm -f version.tmp