-
Notifications
You must be signed in to change notification settings - Fork 11
/
release.sh
68 lines (58 loc) · 2.11 KB
/
release.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/bin/sh
export TARGET="./Distrib"
export SOURCE_DIR="./src"
echo
echo "-------------------"
echo "OSLib release maker"
echo "-------------------"
echo "Deleting target directory...."
rm -rf $TARGET
echo "Creating target directories...."
mkdir -p $TARGET
mkdir -p $TARGET/Install
mkdir -p $TARGET/Install/oslib
mkdir -p $TARGET/Install/oslib/intraFont
mkdir -p $TARGET/Install/oslib/libpspmath
mkdir -p $TARGET/Install/oslib/adhoc
echo "Copying lib...."
cp -f libosl.a $TARGET/Install
echo "Copying header files...."
cp -f $SOURCE_DIR/intraFont/intraFont.h $TARGET/Install/oslib/intraFont/
cp -f $SOURCE_DIR/intraFont/libccc.h $TARGET/Install/oslib/intraFont/
cp -f $SOURCE_DIR/libpspmath/pspmath.h $TARGET/Install/oslib/libpspmath/
cp -f $SOURCE_DIR/adhoc/pspadhoc.h $TARGET/Install/oslib/adhoc/
cp -f $SOURCE_DIR/oslmath.h $TARGET/Install/oslib/
cp -f $SOURCE_DIR/net.h $TARGET/Install/oslib/
cp -f $SOURCE_DIR/browser.h $TARGET/Install/oslib/
cp -f $SOURCE_DIR/audio.h $TARGET/Install/oslib/
cp -f $SOURCE_DIR/bgm.h $TARGET/Install/oslib/
cp -f $SOURCE_DIR/dialog.h $TARGET/Install/oslib/
cp -f $SOURCE_DIR/drawing.h $TARGET/Install/oslib/
cp -f $SOURCE_DIR/keys.h $TARGET/Install/oslib/
cp -f $SOURCE_DIR/map.h $TARGET/Install/oslib/
cp -f $SOURCE_DIR/messagebox.h $TARGET/Install/oslib/
cp -f $SOURCE_DIR/osk.h $TARGET/Install/oslib/
cp -f $SOURCE_DIR/saveload.h $TARGET/Install/oslib/
cp -f $SOURCE_DIR/oslib.h $TARGET/Install/oslib/
cp -f $SOURCE_DIR/text.h $TARGET/Install/oslib/
cp -f $SOURCE_DIR/usb.h $TARGET/Install/oslib/
cp -f $SOURCE_DIR/vfpu_ops.h $TARGET/Install/oslib/
cp -f $SOURCE_DIR/VirtualFile.h $TARGET/Install/oslib/
cp -f $SOURCE_DIR/vram_mgr.h $TARGET/Install/oslib/
cp -f $SOURCE_DIR/ccc.h $TARGET/Install/oslib/
cp -f $SOURCE_DIR/sfont.h $TARGET/Install/oslib/
echo "Copying other files...."
cp -f README.md $TARGET
cp -f CHANGELOG.TXT $TARGET
cp -f install.bat $TARGET
cp -f install.sh $TARGET
echo "Copying DOC...."
cp -rf OSLib_Documentation $TARGET/Doc
echo "Copying Samples...."
cp -rf samples $TARGET/
echo "Copying Tools...."
cp -rf tools $TARGET/
echo "Compressing...."
zip -r OSLib.zip $TARGET/*
echo "Done!"
echo