Rev 187 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
#!/bin/sh
# $Id: psp.sh 193 2024-09-29 05:55:18Z nishi $
export PSPDEV=/usr/local/pspdev
export PATH=$PATH:/usr/local/pspdev/bin
cat config.h.tmpl | sed -E 's/#undef (NO_SSL)/#define \1/g' > config.h
rm -rf httpd
make PLATFORM=psp DESTDIR=httpd/ install || exit 1
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