diff options
author | Remi Collet <fedora@famillecollet.com> | 2013-05-01 18:13:29 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2013-05-01 18:13:29 +0200 |
commit | e80b804c772c8ddb63cfbb2694d17e8956a01872 (patch) | |
tree | 2571e5b63eb629fe05fdcf387e8cd5af8622ebf9 /strip.sh | |
parent | 6bd6bdd7a061edd2bca41511fdbf5335fb1fe04a (diff) |
php-pear-phing: clean more non-free stuf
Diffstat (limited to 'strip.sh')
-rwxr-xr-x | strip.sh | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -10,11 +10,15 @@ if [ -f $name-$1.tgz ]; then rm -r $name-$1/tasks/ext/jsmin sed -e '/^jsmin=/d' \ - -i $name-$1/tasks/defaults.properties + -i $name-$1/tasks/defaults.properties + + sed -En -e '/<ref name="jsmin"\/>/d; /<define name="jsmin">/,/<\/define>/d; 1h;1!H;${;g;s/<!--(\s|=)+JsMinTask(\s|=)+-->//;p;};' \ + -i $name-$1/etc/phing-grammar.rng sed -e '/tasks\/ext\/jsmin/d' \ - -e '/defaults.properties/s/md5sum.*name/name/' \ - -i package.xml + -e '/defaults.properties/s/md5sum.*name/name/' \ + -e '/phing-grammar.rng/s/md5sum.*name/name/' \ + -i package.xml tar czf $name-$1-strip.tgz package.xml $name-$1 tar tf $name-$1-strip.tgz | grep -v '/$' | sort >$list.new |