install: all ./Tool/genconf ./Tool/itworks
mkdir -p $(PREFIX)/bin $(PREFIX)/lib/tewi $(PREFIX)/share/man/man5 $(PREFIX)/etc $(PREFIX)/www
- if [ ! -e $(PREFIX)/etc/tewi.conf ]; then ( ./Tool/genconf $(PREFIX) > $(PREFIX)/etc/tewi.conf || ( rm $(PREFIX)/etc/tewi.conf ; exit 1 ) ) ; fi
+ if [ ! -e $(PREFIX)/etc/tewi.conf ]; then ( ./Tool/genconf $(PREFIX) lib/tewi so > $(PREFIX)/etc/tewi.conf || ( rm $(PREFIX)/etc/tewi.conf ; exit 1 ) ) ; fi
if [ ! -e $(PREFIX)/www/index.html ]; then ( ./Tool/itworks > $(PREFIX)/www/index.html || ( rm $(PREFIX)/www/index.html ; exit 1 ) ) ; fi
if [ ! -e $(PREFIX)/www/pbtewi.gif ]; then ( cp Binary/pbtewi.gif $(PREFIX)/www/ || ( rm $(PREFIX)/www/pbtewi.gif ; exit 1 ) ) ; fi
cp ./Server/tewi $(PREFIX)/bin/
#ifndef __TW_VERSION_H__
#define __TW_VERSION_H__
-#define TW_VERSION "1.04A\0"
+#define TW_VERSION "1.04B\0"
const char* tw_get_version(void);
const char* tw_get_platform(void);
#include <stdio.h>
int main(int argc, char** argv) {
- if(argc < 2) {
+ if(argc < 4) {
return 1;
}
printf("##\n");
printf("\n");
printf("ServerAdmin %s\n", SERVER_ADMIN);
printf("\n");
- printf("LoadModule lib/tewi/mod_cgi.so\n");
- printf("#LoadModule lib/tewi/mod_proxy.so\n");
+ printf("LoadModule %s/mod_cgi.%s\n", argv[2], argv[3]);
+ printf("#LoadModule %s/mod_proxy.%s\n", argv[2], argv[3]);
printf("\n");
printf("Listen 80\n");
printf("#ListenSSL 443\n");
make PLATFORM=$1-service -j4 || fail
cp Server/tewi.exe tewi-service.exe
cd Server
-../Tool/genconf "C:/Tewi" > ../generated.conf
+../Tool/genconf "C:/Tewi" modules dll > ../generated.conf
../Tool/itworks > ../itworks.html
makensis -DVERSION=$VERSION install.nsi
cp install.exe ../install-nossl.exe
make PLATFORM=$1-service -j4 || fail
cp Server/tewi.exe tewi-service.exe
cd Server
-../Tool/genconf "C:/Tewi" > ../generated.conf
+../Tool/genconf "C:/Tewi" modules dll > ../generated.conf
../Tool/itworks > ../itworks.html
makensis -DVERSION=$VERSION install.nsi
cp install.exe ../install-ssl.exe