Subversion Repositories Tewi

Rev

Rev 187 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 187 Rev 193
Line 1... Line 1...
1
#!/bin/sh
1
#!/bin/sh
2
# $Id: psp.sh 187 2024-09-28 00:07:34Z nishi $
2
# $Id: ps3.sh 193 2024-09-29 05:55:18Z nishi $
3
export PSPDEV=/usr/local/pspdev
3
export PSPDEV=/usr/local/pspdev
4
export PATH=$PATH:/usr/local/pspdev/bin
4
export PATH=$PATH:/usr/local/pspdev/bin
5
cat config.h.tmpl | sed -E 's/#undef (NO_SSL)/#define \1/g' > config.h
5
cat config.h.tmpl | sed -E 's/#undef (NO_SSL)/#define \1/g' > config.h
6
rm -rf httpd
6
rm -rf TEWI_00-0
7
make PLATFORM=psp DESTDIR=httpd/ install
7
make PLATFORM=ps3 DESTDIR=TEWI_00-0/ install || exit 1
-
 
8
mkdir -p TEWI_00-0/USRDIR
8
mv httpd/ms0:/PSP/GAME/httpd/* httpd/
9
mv TEWI_00-0/dev_hdd0/game/TEWI_00-0/USRDIR/* TEWI_00-0/USRDIR/
9
rm -rf httpd/lib httpd/bin
10
rm -rf TEWI_00-0/USRDIR/lib TEWI_00-0/USRDIR/bin
10
rm -rf httpd/ms0:
11
rm -rf TEWI_00-0/dev_hdd0
-
 
12
make_self_npdrm Server/tewi_strip.elf TEWI_00-0/USRDIR/EBOOT.BIN UP0001-TEWI_00-0000000000000000
-
 
13
sfo.py --title "Tewi HTTPd" --appid "TEWI" -f /usr/local/ps3dev/bin/sfo.xml TEWI_00-0/PARAM.SFO
11
cp Server/tewi.pbp httpd/EBOOT.PBP
14
cp Binary/ps3.png TEWI_00-0/ICON0.PNG
12
echo "Tewi HTTPd $(make get-version) for PSP" > httpd/README
15
echo "Tewi HTTPd $(make get-version) for PS3" > TEWI_00-0/README
13
echo "========================" >> httpd/README
16
echo "========================" >> TEWI_00-0/README
14
echo "To install, just copy this \`httpd' folder into your /PSP/GAME of the PSP memorystick." >> httpd/README
17
echo "To install, just copy this \`TEWI_00-0' folder into your /game of PS3 HDD0." >> TEWI_00-0/README
15
cat httpd/readme
18
cat TEWI_00-0/README
16
rm -f tewidist.zip
19
rm -f tewidist.zip
17
zip -rv tewidist.zip httpd
20
zip -rv tewidist.zip TEWI_00-0
18
rm -rf httpd
21
rm -rf TEWI_00-0