summaryrefslogtreecommitdiffstats
path: root/development/apache-ivy/doinst.sh
diff options
context:
space:
mode:
author B. Watson <yalhcru@gmail.com>2017-03-20 15:32:20 -0400
committer David Spencer <idlemoor@slackbuilds.org>2017-03-25 13:27:19 +0000
commit50710a784c4f5ada1f39fc4716c3cbbf8783b59d (patch)
treef00774d5f568112a9c91ae0efcdcb9ff6b38db92 /development/apache-ivy/doinst.sh
parent393340878cdeb30aff52c6b4f995f38ca7575010 (diff)
downloadslackbuilds-50710a784c4f5ada1f39fc4716c3cbbf8783b59d.tar.gz
slackbuilds-50710a784c4f5ada1f39fc4716c3cbbf8783b59d.tar.xz
development/apache-ivy: Fix and install doinst.sh.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to '')
-rw-r--r--development/apache-ivy/doinst.sh17
1 files changed, 5 insertions, 12 deletions
diff --git a/development/apache-ivy/doinst.sh b/development/apache-ivy/doinst.sh
index 1f6d45574c..8e2d078264 100644
--- a/development/apache-ivy/doinst.sh
+++ b/development/apache-ivy/doinst.sh
@@ -1,12 +1,5 @@
-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
+# 20170320 bkw: got rid of dead code (if [ "$1" = "0" ]... would never be
+# true in a doinst), got rid of absolute paths, and there were comments
+# missing their # so they were executed as code...
+rm -f usr/share/java/ivy.jar
+ln -s ivy-1.4.1.jar usr/share/java/ivy.jar