summaryrefslogtreecommitdiff
path: root/build_w32.bat
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2007-10-10 04:32:15 +0000
committerPaul Smith <psmith@gnu.org>2007-10-10 04:32:15 +0000
commite54dfb428420943a73e3b2098dc5c694c4fdf58d (patch)
tree0979061bf1f3532b6333753e46ebc09d0a8462ac /build_w32.bat
parent19b6504f8a92ec9db6330976dba85804e9c18d6e (diff)
downloadgunmake-e54dfb428420943a73e3b2098dc5c694c4fdf58d.tar.gz
Some Windows fixes to allow builds to succeed.
Diffstat (limited to 'build_w32.bat')
-rw-r--r--build_w32.bat5
1 files changed, 5 insertions, 0 deletions
diff --git a/build_w32.bat b/build_w32.bat
index 7d10e61..38c9e80 100644
--- a/build_w32.bat
+++ b/build_w32.bat
@@ -16,6 +16,11 @@ rem
rem You should have received a copy of the GNU General Public License along
rem with this program. If not, see <http://www.gnu.org/licenses/>.
+if exist config.h.W32 GoTo NotCVS
+sed -n "s/^AC_INIT(\[GNU make\],\[\([^]]\+\)\].*/s,%%VERSION%%,\1,g/p" configure.in > config.h.W32.sed
+echo s,%%PACKAGE%%,make,g >> config.h.W32.sed
+sed -f config.h.W32.sed config.h.W32.template > config.h.W32
+:NotCVS
if not exist config.h copy config.h.W32 config.h
cd w32\subproc
echo "Creating the subproc library"