1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-06 18:04:13 +01:00

And xulmus was born.

This commit is contained in:
Doug Kearns
2009-03-16 15:54:02 +11:00
parent 9f70457a4a
commit 80beaa41df
61 changed files with 7085 additions and 36 deletions

View File

@@ -1,6 +1,7 @@
#!/bin/dash
set -e
top=$(pwd)
jar=$1
bases=$2
@@ -14,7 +15,7 @@ stage="$top/${jar%.*}"
mkdir -p $stage
getfiles () {
filter="\.($(echo $1 | tr ' ' '|'))$"; shift
filter="\.($(echo $1 | tr ' ' '|'))$"; shift
find "$@" -not -path '*CVS*' 2>/dev/null | grep -E "$filter" || true
}
copytext () {
@@ -33,9 +34,9 @@ do
[ ${jar##*.} = jar ] && stage="$stage/${base##*/}"
for dir in $dirs
do
for f in $(getfiles "$bin" "$dir")
for f in $(getfiles "$bin" "$dir")
do
mkdir -p "$stage/${f%/*}"
mkdir -p "$stage/${f%/*}"
cp $f "$stage/$f"
done
for f in $(getfiles "$text" "$dir")
@@ -51,6 +52,8 @@ do
)
done
(cd $stage; zip -r "$top/$jar" *)
cd $stage
zip -r "$top/$jar" *
cd -
rm -rf "$stage"