forked from chriskempson/base16-builder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevbuild.sh
executable file
·41 lines (29 loc) · 833 Bytes
/
devbuild.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
#! /bin/bash
# quit on failure
set -e
package_dir="/Users/Tom/Library/Application Support/Sublime Text 3/Installed Packages"
package_file="DevTheme.sublime-package"
# Build the theme, with just the 80's colors:
echo "--- building the theme"
./base16 schemes/eighties.yml &&
# enter the dir
pushd "output/textmate" &&
# cleanup
if [ -f $package_file ]; then
echo "--- removing previous package file"
rm $package_file
fi
# rename the theme files
# package the theme
echo "--- zipping the theme"
zip $package_file ./* &&
# echo "--------------------------------"
# ls -lGFh "./$package_file"
# echo "--------------------------------"
# ls -lGFh "$package_dir"
# echo "--------------------------------"
# install the theme
echo "--- installing the theme"
mv "./$package_file" "$package_dir/$package_file"
popd
exit 0