summaryrefslogtreecommitdiff
path: root/build_w32.bat
diff options
context:
space:
mode:
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"