summaryrefslogtreecommitdiff
path: root/libraries/apache-ivy/doinst.sh
blob: 1f6d45574c786d2843dbf3fc10ed8fb78ee6208b (plain)
1
2
3
4
5
6
7
8
9
10
11
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