summaryrefslogtreecommitdiffstats
path: root/install-win32/winconfig
blob: 9d686c94c8b40046a8402eedc7350729b718e8ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

# prepare files for building on Windows
# run from top directory: install-win32/winconfig

rm -rf autodefs
mkdir autodefs

# build multi-grammar definition files
perl install-win32/m4todef.pl <version.m4 >autodefs/version.in
for g in "h" "sh" "nsi" "in" ; do
    perl install-win32/trans.pl $g install-win32/settings.in >autodefs/defs.$g
done

cat /dev/null >autodefs/guidefs.nsi

echo '#include "autodefs/defs.h"' >autodefs.h
echo '#include "config.h"' >>autodefs.h