mirror of https://github.com/mpv-player/mpv
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:
parent
a62cb5ead2
commit
bc0dd94ce5
|
@ -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
|
# Update version.h only on revision changes to avoid spurious rebuilds
|
||||||
if test "$NEW_REVISION" != "$OLD_REVISION"; then
|
if test "$NEW_REVISION" != "$OLD_REVISION"; then
|
||||||
echo "$NEW_REVISION" > version.h
|
cat <<EOF > version.h
|
||||||
echo "$TITLE" >> version.h
|
$NEW_REVISION
|
||||||
|
$TITLE
|
||||||
|
EOF
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue