[MPlayer-cvslog] r28384 - trunk/version.sh

diego subversion at mplayerhq.hu
Thu Jan 29 01:16:10 CET 2009


Author: diego
Date: Thu Jan 29 01:16:09 2009
New Revision: 28384

Log:
Use cat instead of echo to generate version.h.
Portably echoing backslashes is near impossible.

Modified:
   trunk/version.sh

Modified: trunk/version.sh
==============================================================================
--- trunk/version.sh	Wed Jan 28 18:47:50 2009	(r28383)
+++ trunk/version.sh	Thu Jan 29 01:16:09 2009	(r28384)
@@ -13,6 +13,8 @@ TITLE="#define MP_TITLE \"%s \"VERSION\"
 
 # 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



More information about the MPlayer-cvslog mailing list