]> sjero.net Git - wget/blobdiff - util/dist-wget
[svn] Synch doc/version.texi with src/version.c.
[wget] / util / dist-wget
index 25152c7c9ecffd07c6344edd8fb95dc8f51248f4..2dc305ccda129ae45cb5a38c99e56fd63bcdf5ee 100755 (executable)
@@ -98,8 +98,9 @@ rm -rf Branches 1>>$O 2>&1
 # Force the version if required.
 if test x"$VERSION" != x
 then
-  echo "char *version_string = \"$VERSION\";" > src/version.c
   echo "Forcing version to $VERSION."
+  echo "char *version_string = \"$VERSION\";" > src/version.c
+  echo "@set VERSION $VERSION" > doc/version.texi
 fi
 
 # Create configure and friends.
@@ -138,8 +139,9 @@ echo "done."
 # Create the distribution file.
 echo $e_n "Creating distribution tarball... $e_c"
 $MAKE dist 1>>$O 2>&1
-mv wget-*.tar.gz $DEST_DIR
-echo "done."
+archive=`echo wget-*.tar.gz`
+mv "$archive" $DEST_DIR
+echo "$archive"
 
 cd ..