Skip to content
Snippets Groups Projects
Commit 8cfeba00 authored by Leandro Doctors's avatar Leandro Doctors
Browse files

first experiment with `d/{postinst,preinst,prerm}`

parent da990ac5
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
set -e
if [ "$1" = "configure" ]
then
CLOJUREVER=1.10
PRIORITY=200
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
fi
#DEBHELPER#
#!/bin/sh
set -e
if [ "$1" = "upgrade" ]; then
CLOJUREVER=1.10
if dpkg --compare-versions "$2" "le" "1.10.2-1" && update-alternatives --query clojure 2> /dev/null ; then
update-alternatives --remove-all clojure
fi
fi
#DEBHELPER#
\ No newline at end of file
#!/bin/sh
set -e
if [ "$1" = "remove" ]; then
CLOJUREVER=1.10
update-alternatives --remove clojure /usr/bin/clojure${CLOJUREVER}
fi
#DEBHELPER#
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment