From 3cacbbdfc4a219f46eb54adf2682b0abdd7a7fea Mon Sep 17 00:00:00 2001 From: Nishi Date: Fri, 27 Sep 2024 19:19:56 +0000 Subject: [PATCH] add psp build script git-svn-id: file:///raid/svn-personal/tewi/trunk@184 8739d7e6-ffea-ec47-b151-bdff447c6205 --- Makefile | 4 ++-- psp.sh | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100755 psp.sh diff --git a/Makefile b/Makefile index a9441ad..4e10966 100644 --- a/Makefile +++ b/Makefile @@ -39,8 +39,8 @@ install: all ./Tool/genconf ./Tool/itworks 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 diff --git a/psp.sh b/psp.sh new file mode 100755 index 0000000..ad7f58d --- /dev/null +++ b/psp.sh @@ -0,0 +1,17 @@ +#!/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 -- 2.45.2