This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

FYI: fix create-version.sh thinko


I'm checking this in.

When extracting create-version.sh from the Makefile code I apparently
neglected to test the DATE code well, since it doesn't work.
I'd left a "$$" where a "$" was needed.

This fixes the problem.

Tom

2013-06-25  Tom Tromey  <tromey@redhat.com>

	* common/create-version.sh (date): Use "$", not "$$" in sed
	expression.

Index: common/create-version.sh
===================================================================
RCS file: /cvs/src/src/gdb/common/create-version.sh,v
retrieving revision 1.2
diff -u -r1.2 create-version.sh
--- common/create-version.sh	24 Jun 2013 22:03:51 -0000	1.2
+++ common/create-version.sh	25 Jun 2013 15:54:40 -0000
@@ -28,7 +28,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`
+date=`sed -n -e 's/^.* BFD_VERSION_DATE \(.*\)$/\1/p' $srcdir/../bfd/version.h`
 sed -e "s/DATE/$date/" < $srcdir/common/version.in > version.tmp
 echo '#include "version.h"' >> version.c-tmp
 echo 'const char version[] = "'"`sed q version.tmp`"'";' >> version.c-tmp


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]