Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (21 sloc) 0.652 kB
#!/bin/sh
VER=`grep -Go 'version\>\(.*\)\<' src/install.rdf | grep -Go '>\(.*\)<' | sed -e 's/[><]*//g'`
XPI="restartless-restart-$VER.xpi"
echo "Building $XPI ..."
# Copy base structure to a temporary build directory and move in to it
cd src
rm -rf build
mkdir build
cp -r \
bootstrap.js images includes locale install.rdf icon.png icon16.png icon64.png \
build/
cd build
# Cleaning up unwanted files
find . -depth -name '*~' -exec rm -rf "{}" \;
find . -depth -name '#*' -exec rm -rf "{}" \;
find . -depth -name '.DS_Store' -exec rm "{}" \;
find . -depth -name 'Thumbs.db' -exec rm "{}" \;
zip -qr9XD "../../$XPI" *
cd ..
rm -rf build
cd ..
Jump to Line
Something went wrong with that request. Please try again.