postinst is in clojure1.2 1.2.1+dfsg-4.
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.2
update-alternatives --install \
/usr/bin/clojure clojure /usr/bin/clojure${CLOJUREVER} 10 \
--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} 10 \
--slave /usr/share/man/man1/clojurec.1.gz clojurec.1.gz /usr/share/man/man1/clojurec${CLOJUREVER}.1.gz
fi
|