Skip to content

Commit fd6f911

Browse files
committed
script to make tarball
1 parent 812010e commit fd6f911

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

package.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/sh
2+
3+
# creates tar.gz for current version
4+
5+
VERSION=`./plessc -v | sed -n 's/^v\(.*\)$/\1/p'`
6+
OUT_DIR="tmp/lessphp"
7+
TMP=`dirname $OUT_DIR`
8+
9+
mkdir -p $OUT_DIR
10+
tar -c `git ls-files` | tar -C $OUT_DIR -x
11+
12+
rm $OUT_DIR/.gitignore
13+
rm $OUT_DIR/package.sh
14+
rm $OUT_DIR/lessify
15+
rm $OUT_DIR/lessify.inc.php
16+
17+
OUT_NAME="lessphp-$VERSION.tar.gz"
18+
tar -czf $OUT_NAME -C $TMP lessphp/
19+
echo "Wrote $OUT_NAME"
20+
21+
rm -r $TMP
22+

0 commit comments

Comments
 (0)