Skip to content
This repository
Browse code

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 1 changed file with 4 additions and 2 deletions. Show diff stats Hide diff stats

  1. +4 2 yinst/yuicompressor.yicf
6 yinst/yuicompressor.yicf
... ... @@ -1,5 +1,5 @@
1 1 PRODUCT_NAME = yuicompressor
2   -VERSION = `cat ant.properties | grep version.number | head -n1 | awk -F= '{print $2}'`
  2 +VERSION = `cat ../ant.properties | grep version.number | egrep -o '[0-9]+(\.[0-9])+' | head -n1`
3 3 LONG_DESC = `cat ../doc/README`
4 4 SHORT_DESC = YUI Compressor
5 5 PERM = 0644
@@ -13,4 +13,6 @@ PACKAGE_OS_SPECIFIC = no
13 13 # Actions
14 14 ############################################################
15 15 f 0755 - - bin/yuicompressor yuicompressor
16   -f 0644 - - bin/yuicompressor.jar yuicompressor.jar
  16 +# Build with ant, piping to stderr, then get the biggest-named jar file.
  17 +JAR=`( cd .. && (ant 1>&2) && ls $PWD/build/*.jar | sort | tail -n1 && exit 0 ) || ( echo "Build Failed" && exit 1 )`
  18 +f 0644 - - bin/yuicompressor.jar $(JAR)

0 comments on commit 3ba3d98

Please sign in to comment.
Something went wrong with that request. Please try again.