postinst is in clojure 1.9.0-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 16 | #!/bin/sh
set -e
if [ "$1" = "configure" ]
then
CLOJUREVER=1.9
PRIORITY=180
update-alternatives --install \
/usr/bin/clojure clojure /usr/bin/clojure${CLOJUREVER} ${PRIORITY} \
--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} ${PRIORITY} \
--slave /usr/share/man/man1/clojurec.1.gz clojurec.1.gz /usr/share/man/man1/clojurec${CLOJUREVER}.1.gz
fi
|