forked from rtcwcoop/rtcwcoop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
create_pk3.sh
executable file
·47 lines (34 loc) · 1018 Bytes
/
create_pk3.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
#!/bin/bash
PAKFILE=sp_pak_coop1.pk3
BINFILE=bin.pk3
echo "Creating directories"
if [ "`uname`" = "Darwin" ]; then
mkdir -p ~/Documents/rtcwcoop/coopmain/
fi
if [ "`uname`" = "Linux" ]; then
mkdir -p ~/.wolf/coopmain
fi
echo "Creating " $PAKFILE
cd media/sp_pak_coop1
zip -qur $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 " $BINFILE
if [ "`uname`" = "Darwin" ]; then
cd "../../build"
for i in $(find . -type f -name "*.coop.*.dylib" ! -name "*qagame*"); do zip -qurj $BINFILE $i; done
cp $BINFILE ~/Documents/rtcwcoop/coopmain/
mv $BINFILE ../media/
fi
if [ "`uname`" = "Linux" ]; then
cd "../../build"
for i in $(find . -type f -name "*.coop.*.so" ! -name "*qagame*"); do zip -qurj $BINFILE $i; done
cp $BINFILE ~/.wolf/coopmain/
mv $BINFILE ../media/
fi
echo "Done"