forked from rtcwcoop/rtcwcoop
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcreate_pk3_64.sh
executable file
·41 lines (31 loc) · 913 Bytes
/
create_pk3_64.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
#!/bin/bash
if [ "$1" = "release" ]; then
TARGET="release"
else
TARGET="debug"
fi
PAKFILE=sp_pak_coop1.pk3
ORIGINALFOLDER=$(pwd)
cd media/sp_pak_coop1
#zip -r $PAKFILE models/players/coop/* models/movespeeds/* maps/* scripts/* ui/* ./* levelshots/*
zip -r $PAKFILE ./ -x "*.svn*"
#if [ "`uname`" = "Darwin" ]; then
#cp $PAKFILE ~/Documents/rtcwcoop/coopmain/
#fi
if [ "`uname`" = "Linux" ]; then
cp $PAKFILE ~/.wolf/coopmain/
fi
mv $PAKFILE ../
echo "Creating bin.pk3"
if [ "`uname`" = "Darwin" ]; then
cd "../../build/$TARGET-darwin-x86_64/coopmain/"
zip -r bin.pk3 *.dylib
cp bin.pk3 ~/Documents/rtcwcoop/coopmain/
mv bin.pk3 ../../../media/
fi
if [ "`uname`" = "Linux" ]; then
cd "../../build/$TARGET-linux-x86_64/coopmain/"
zip -r bin.pk3 *.so
cp bin.pk3 ~/.wolf/coopmain/
mv bin.pk3 ../../../media/
fi