forked from chao/RESTClient
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·28 lines (24 loc) · 723 Bytes
/
build.sh
File metadata and controls
executable file
·28 lines (24 loc) · 723 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
#!/bin/sh
XPI="restclient.xpi"
rm -rf XPI
# Copy base structure to a temporary build directory and change to it
echo "Creating working directory ..."
rm -rf build
mkdir build
cp -r \
install.rdf content locale LICENSE\
modules icon.png chrome.manifest \
build/
cd build
echo "Cleaning up unwanted files ..."
find . -depth -name '*~' -exec rm -rf "{}" \;
find . -depth -name '#*' -exec rm -rf "{}" \;
find . -depth -name '*.psd' -exec rm -rf "{}" \;
find . -depth -name 'test*' -exec rm -rf "{}" \;
find . -depth -name '.DS_Store' -exec rm -rf "{}" \;
find . -depth -name '*.test.js' -exec rm -rf "{}" \;
echo "Creating $XPI ..."
zip -qr9DX "../$XPI" *
echo "Cleaning up temporary files ..."
cd ..
rm -rf build