-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathCOMPILE_THEME.sh
More file actions
29 lines (20 loc) · 779 Bytes
/
COMPILE_THEME.sh
File metadata and controls
29 lines (20 loc) · 779 Bytes
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
#!/bin/bash
set -e
echo 'pak192.comic open-source repository compiler for Linux'
echo -e '======================================================\n'
echo 'This bash compiles the theme into a new folder'
echo -e 'called themes, makeobj must be in root folder.\n'
echo -n 'Checking for makeobj... '
if [ ! -f 'makeobj' ]; then
echo 'ERROR: makeobj not found in root folder.'
exit 1
fi
echo -e 'OK\n'
mkdir themes
./makeobj pak64 themes/menu.pak192comic.pak theme/pak192comic/theme.dat
./makeobj pak64 themes/menu.pak192comicxxl.pak theme/pak192comicxxl/theme.dat
cp -v ./theme/*.tab ./themes/
zip -r themes.zip themes
echo '======================================================'
echo 'theme complete!'
echo '======================================================'