-# We copy in the top-level files before creating the subdirectories in
-# hopes that this will make the top-level files appear first in the
-# tar file; this means that people can start reading the INSTALL and
-# README while the rest of the tar file is still unpacking. Whoopee.
-echo "Copying top-level files."
-ln GETTING.GNU.SOFTWARE INSTALL PROBLEMS README ${tempdir}
-ln ChangeLog Makefile.in build-install.in configure make-dist ${tempdir}
+### We copy in the top-level files before creating the subdirectories in
+### hopes that this will make the top-level files appear first in the
+### tar file; this means that people can start reading the INSTALL and
+### README while the rest of the tar file is still unpacking. Whoopee.
+echo "Making links to top-level files."
+ln GETTING.GNU.SOFTWARE INSTALL PROBLEMS README move-if-change ${tempdir}
+ln ChangeLog Makefile.in build-ins.in configure configure.in ${tempdir}
+ln make-dist vpath.sed ${tempdir}
+### Copy these files; they're cross-filesystem symlinks.
+cp config.sub ${tempdir}
+cp config.guess ${tempdir}
+cp install.sh ${tempdir}
+
+echo "Updating version number in README."
+(cd ${tempdir}
+ awk \
+ '$1 " " $2 " " $3 " " $4 " " $5 == "This directory tree holds version" { $6 = version; print $0 }
+ $1 " " $2 " " $3 " " $4 " " $5 != "This directory tree holds version"' \
+ version=${version} README > tmp.README
+ mv tmp.README README)
+