Use cat instead of echo to generate version.h.

Portably echoing backslashes is near impossible.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28384 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego 2009-01-29 00:16:09 +00:00
parent a62cb5ead2
commit bc0dd94ce5
1 changed files with 4 additions and 2 deletions

View File

@ -13,6 +13,8 @@ TITLE="#define MP_TITLE \"%s \"VERSION\" (C) 2000-2009 MPlayer Team\n\""
# 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