build-scripts/updaterev.sh
changeset 6994 06f368666c6f
parent 5359 d5fe4ed3a28d
--- a/build-scripts/updaterev.sh	Sun Mar 10 13:36:20 2013 -0400
+++ b/build-scripts/updaterev.sh	Sun Mar 10 16:28:20 2013 -0700
@@ -10,11 +10,11 @@
 rev=`sh showrev.sh 2>/dev/null`
 if [ "$rev" != "" -a "$rev" != "hg-0:baadf00d" ]; then
     revnum=`echo $rev | sed 's,hg-\([0-9]*\).*,\1,'`
-    echo "#define SDL_REVISION \"$rev\"" >$header.new
-    echo "#define SDL_REVISION_NUMBER $revnum" >>$header.new
+    echo "#define SDL_REVISION \"$rev\"" >"$header.new"
+    echo "#define SDL_REVISION_NUMBER $revnum" >>"$header.new"
     if diff $header $header.new >/dev/null 2>&1; then
-        rm $header.new
+        rm "$header.new"
     else
-        mv $header.new $header
+        mv "$header.new" "$header"
     fi
 fi