diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-03-15 14:42:42 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-03-15 14:42:42 -0300 |
commit | 551497ef94f6239b109316d8fab32f0909b13f73 (patch) | |
tree | 236615e9881988ce05f40583ff891bf0fcef2c14 /vendors/lessphp/package.sh | |
download | elgg-551497ef94f6239b109316d8fab32f0909b13f73.tar.gz elgg-551497ef94f6239b109316d8fab32f0909b13f73.tar.bz2 |
Squashed 'mod/less/' content from commit 380edad
git-subtree-dir: mod/less
git-subtree-split: 380edadb3a5e524a8e6ef6df063b678f2f00516f
Diffstat (limited to 'vendors/lessphp/package.sh')
-rwxr-xr-x | vendors/lessphp/package.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/vendors/lessphp/package.sh b/vendors/lessphp/package.sh new file mode 100755 index 000000000..1c871a147 --- /dev/null +++ b/vendors/lessphp/package.sh @@ -0,0 +1,22 @@ +#!/bin/sh + +# creates tar.gz for current version + +VERSION=`./plessc -v | sed -n 's/^v\(.*\)$/\1/p'` +OUT_DIR="tmp/lessphp" +TMP=`dirname $OUT_DIR` + +mkdir -p $OUT_DIR +tar -c `git ls-files` | tar -C $OUT_DIR -x + +rm $OUT_DIR/.gitignore +rm $OUT_DIR/package.sh +rm $OUT_DIR/lessify +rm $OUT_DIR/lessify.inc.php + +OUT_NAME="lessphp-$VERSION.tar.gz" +tar -czf $OUT_NAME -C $TMP lessphp/ +echo "Wrote $OUT_NAME" + +rm -r $TMP + |