changeset 28349:a42f319f25b3

Use cat instead of echo to generate version.h. Portably echoing backslashes is near impossible.
author diego
date Thu, 29 Jan 2009 00:16:09 +0000
parents fb82979eb1db
children 0b879bbbb432
files version.sh
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/version.sh	Wed Jan 28 17:47:50 2009 +0000
+++ b/version.sh	Thu Jan 29 00:16:09 2009 +0000
@@ -13,6 +13,8 @@
 
 # Update version.h only on revision changes to avoid spurious rebuilds
 if test "$NEW_REVISION" != "$OLD_REVISION"; then
-    echo "$NEW_REVISION" > version.h
-    echo "$TITLE" >> version.h
+    cat <<EOF > version.h
+$NEW_REVISION
+$TITLE
+EOF
 fi