]> Git repositories of Nishi - tewi.git/commitdiff
add psp build script
authorNishi <nishi@nishi.boats>
Fri, 27 Sep 2024 19:19:56 +0000 (19:19 +0000)
committerNishi <nishi@nishi.boats>
Fri, 27 Sep 2024 19:19:56 +0000 (19:19 +0000)
git-svn-id: file:///raid/svn-personal/tewi/trunk@184 8739d7e6-ffea-ec47-b151-bdff447c6205

Makefile
psp.sh [new file with mode: 0755]

index a9441ad56ad44dcf592b3a7737145e8fddacaf45..4e10966ee963033f76af3b0afe3c7dc0d3b0dedc 100644 (file)
--- 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 (executable)
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