/mozilla/movetofolder/trunk/bin/deploy.sh |
---|
2,14 → 2,16 |
T="$1" |
D="$(dirname $0)/.." |
P=mozilla/movetofolder |
N=movetofolder.xpi |
if [ -z "$T" ] ; then |
echo "Need one parameter - the target dir" >> /dev/stderr |
echo "Need one parameter - the target web dir" >> /dev/stderr |
return 1 |
fi |
rm -f "$T/selsearch.xpi" |
(cd "$D/src"; find . -not -path '*/.svn*' | zip -@ "$T/selsearch.xpi") |
rm -f "$T/$P/$N" |
(cd "$D/src"; find . -not -path '*/.svn*' | zip -@ - ) > "$T/$P/$N" |
cp "$D/update.rdf" "$T" |
cp "$D/update.rdf" "$T/$P" |