aboutsummaryrefslogtreecommitdiff
path: root/vendors/lessphp/package.sh
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-03-15 14:42:42 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-03-15 14:42:42 -0300
commit551497ef94f6239b109316d8fab32f0909b13f73 (patch)
tree236615e9881988ce05f40583ff891bf0fcef2c14 /vendors/lessphp/package.sh
downloadelgg-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-xvendors/lessphp/package.sh22
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
+