Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Kick off a build with the yinst_create command, because I can't be tr…

…usted to do anything manually.
  • Loading branch information...
commit 3ba3d981429192ea874f86334af5516f7f707ac6 1 parent cb2f270
isaacs authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 yinst/yuicompressor.yicf
6 yinst/yuicompressor.yicf
View
@@ -1,5 +1,5 @@
PRODUCT_NAME = yuicompressor
-VERSION = `cat ant.properties | grep version.number | head -n1 | awk -F= '{print $2}'`
+VERSION = `cat ../ant.properties | grep version.number | egrep -o '[0-9]+(\.[0-9])+' | head -n1`
LONG_DESC = `cat ../doc/README`
SHORT_DESC = YUI Compressor
PERM = 0644
@@ -13,4 +13,6 @@ PACKAGE_OS_SPECIFIC = no
# Actions
############################################################
f 0755 - - bin/yuicompressor yuicompressor
-f 0644 - - bin/yuicompressor.jar yuicompressor.jar
+# Build with ant, piping to stderr, then get the biggest-named jar file.
+JAR=`( cd .. && (ant 1>&2) && ls $PWD/build/*.jar | sort | tail -n1 && exit 0 ) || ( echo "Build Failed" && exit 1 )`
+f 0644 - - bin/yuicompressor.jar $(JAR)
Please sign in to comment.
Something went wrong with that request. Please try again.