diff options
author | Vincent Batts <vbatts@hashbangbash.com> | 2010-03-15 21:22:49 -0500 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2010-05-13 13:27:26 +0200 |
commit | 7947934a5341a01ca89cc9c8c467346fb4b951f9 (patch) | |
tree | 9605d7a32de24ef3f476a4018cd9e7aed53e0631 /development/apache-ivy/doinst.sh | |
parent | 9479f3e37f47f0adc7cf3ca9e58fcd6d30f65053 (diff) | |
download | slackbuilds-7947934a5341a01ca89cc9c8c467346fb4b951f9.tar.gz |
development/apache-ivy: Updated for version 2.1.0.
Moved from Libraries.
Diffstat (limited to 'development/apache-ivy/doinst.sh')
-rw-r--r-- | development/apache-ivy/doinst.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/development/apache-ivy/doinst.sh b/development/apache-ivy/doinst.sh new file mode 100644 index 0000000000..1f6d45574c --- /dev/null +++ b/development/apache-ivy/doinst.sh @@ -0,0 +1,12 @@ +postinstall scriptlet (using /bin/sh): +rm -f /usr/share/java/ivy.jar +ln -s /usr/share/java/ivy-1.4.1.jar /usr/share/java/ivy.jar +postuninstall scriptlet (using /bin/sh): +if [ "$1" = "0" ]; then + # Remove the old link + rm -f /usr/share/java/ivy.jar + + # Put back a new link. It's OK if this fails, that just means there + # is no other version of the package installed + ln -fs `ls -tr /usr/share/java/ivy-* 2>/dev/null|tail -n 1` /usr/share/java/ivy.jar || true +fi |