if [ ! -e $(DESTDIR)$(PREFIX)/etc/tewi.conf ]; then ( ./Tool/genconf $(PREFIX) lib/tewi so > $(DESTDIR)$(PREFIX)/etc/tewi.conf || ( rm $(DESTDIR)$(PREFIX)/etc/tewi.conf ; exit 1 ) ) ; fi
if [ ! -e $(DESTDIR)$(PREFIX)/www/index.html ]; then ( ./Tool/itworks > $(DESTDIR)$(PREFIX)/www/index.html || ( rm $(DESTDIR)$(PREFIX)/www/index.html ; exit 1 ) ) ; fi
if [ ! -e $(DESTDIR)$(PREFIX)/www/pbtewi.gif ]; then ( cp Binary/pbtewi.gif $(DESTDIR)$(PREFIX)/www/ || ( rm $(DESTDIR)$(PREFIX)/www/pbtewi.gif ; exit 1 ) ) ; fi
- cp ./Server/tewi $(DESTDIR)$(PREFIX)/bin/
- cp ./Module/*.so $(DESTDIR)$(PREFIX)/lib/tewi/
+ -cp ./Server/tewi $(DESTDIR)$(PREFIX)/bin/
+ -cp ./Module/*.so $(DESTDIR)$(PREFIX)/lib/tewi/
format:
clang-format --verbose -i `find ./Server ./Common ./Module ./Tool "(" -name "*.c" -or -name "*.h" ")" -and -not -name "strptime.*"` config.h
--- /dev/null
+#!/bin/sh
+# $Id$
+export PSPDEV=/usr/local/pspdev
+export PATH=$PATH:/usr/local/pspdev/bin
+rm -rf httpd
+make PLATFORM=psp DESTDIR=httpd/ install
+mv httpd/ms0:/PSP/GAME/httpd/* httpd/
+rm -rf httpd/lib httpd/bin
+rm -rf httpd/ms0:
+cp Server/tewi.pbp httpd/EBOOT.PBP
+echo "Tewi HTTPd $(make get-version) for PSP" > httpd/README
+echo "========================" >> httpd/README
+echo "To install, just copy this \`httpd' folder into your /PSP/GAME of the PSP memorystick." >> httpd/README
+cat httpd/readme
+rm -f tewidist.zip
+zip -rv tewidist.zip httpd
+rm -rf httpd