set once 1
while 1 {
set suf ""
+ set arg ""
exec sed "s/undef NO_SSL/define NO_SSL/g" config.h.tmpl > config.h
if { $once == 0 } {
exec sed -i "s/undef BUILD_GUI/define BUILD_GUI/g" config.h
set suf "-gui"
+ set arg " BUILD_GUI"
}
set ::env(DISPLAY) ":0"
RunCommand "make clean"
}
}
set win "win$bits"
- RunCommand "./installer.sh $win"
+ RunCommand "./installer.sh $win$arg"
RunCommand "doas mkdir -p /raid/f/g/tewi/$win"
RunCommand "doas mkdir -p /raid/ftp/pub/tewi/$win"
RunCommand "doas cp install-ssl.exe /raid/f/g/tewi/$win/tewiinst$bits-[exec make get-version]-ssl$suf.exe"
VERSION=`make get-version`
sed "s/undef NO_SSL/define NO_SSL/g" config.h.tmpl > config.h
+if [ ! "x$2" = "x" ]; then
+ sed -i "s/undef $2/define $2/g" config.h
+fi
make clean || fail
make PLATFORM=$1 PREFIX=C:/Tewi -j4 || fail
cd ..
sed "s/define NO_SSL/undef NO_SSL/g" config.h.tmpl > config.h
+if [ ! "x$2" = "x" ]; then
+ sed -i "s/undef $2/define $2/g" config.h
+fi
make clean || fail
make PLATFORM=$1 -j4 PREFIX=C:/Tewi|| fail