-
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) · 713 Bytes
/
build.sh
File metadata and controls
executable file
·28 lines (24 loc) · 713 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
NOT='.sh$|^.git|^tests|^.eslint|^.travis|^package.json$|^package-lock.json$'
PDFJS_IN=node_modules/pdfjs-dist/build/pdf.js
PDFWORKERJS_IN=node_modules/pdfjs-dist/build/pdf.worker.js
PDFJS_OUT=content/vendor/pdf.js
PDFWORKERJS_OUT=content/vendor/pdf.worker.js
mkdir -p content/vendor
cp $PDFJS_IN $PDFJS_OUT
cp $PDFWORKERJS_IN $PDFWORKERJS_OUT
git ls-files | egrep -v $NOT > files
for a in $(cd modules/stdlib && git ls-files | egrep -v $NOT); do
echo modules/stdlib/$a >> files
done
if [ -f $PDFJS ]; then
true;
else
echo "Please run make from content/pdfjs";
exit 1
fi
echo $PDFJS_OUT >> files
echo $PDFWORKERJS_OUT >> files
rm conversations.xpi
zip conversations.xpi $(cat files)
rm files