postinst is in clojure1.3 1.3.0+dfsg-2.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | #!/bin/sh
set -e
if [ "$1" = "configure" ]
then
CLOJUREVER=1.3
update-alternatives --install \
/usr/bin/clojure clojure /usr/bin/clojure${CLOJUREVER} 20 \
--slave /usr/share/man/man1/clojure.1.gz clojure.1.gz /usr/share/man/man1/clojure${CLOJUREVER}.1.gz \
--slave /usr/share/java/clojure.jar clojure.jar /usr/share/java/clojure-${CLOJUREVER}.jar
update-alternatives --install \
/usr/bin/clojurec clojurec /usr/bin/clojurec${CLOJUREVER} 20 \
--slave /usr/share/man/man1/clojurec.1.gz clojurec.1.gz /usr/share/man/man1/clojurec${CLOJUREVER}.1.gz
fi
|