diff options
author | Vincent Batts <vbatts@hashbangbash.com> | 2010-05-12 23:29:54 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-12 23:29:54 +0200 |
commit | fc7ee16b82c9c3955c2350bdb81de83e77a54ba5 (patch) | |
tree | 7313a59ed734e3c13b72b54c070e397f629c658e /libraries/apache-ivy/doinst.sh | |
parent | 40e7f7999a29bb3def703f6b8a56e8525951069f (diff) | |
download | slackbuilds-fc7ee16b82c9c3955c2350bdb81de83e77a54ba5.tar.gz |
libraries/apache-ivy: Added to 12.2 repository
Diffstat (limited to 'libraries/apache-ivy/doinst.sh')
-rw-r--r-- | libraries/apache-ivy/doinst.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libraries/apache-ivy/doinst.sh b/libraries/apache-ivy/doinst.sh new file mode 100644 index 0000000000..1f6d45574c --- /dev/null +++ b/libraries/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 |