summaryrefslogtreecommitdiffstats
path: root/development/apache-ivy/doinst.sh
diff options
context:
space:
mode:
Diffstat (limited to 'development/apache-ivy/doinst.sh')
-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