Initial commit: Uploaded everything from abs/core
[arch-rock.git] / devel / fakeroot / fakeroot.install
blobb585210bd834d3968799a7a2f7af5e535cee6cd6
1 # arg 1: the new package version
2 post_install() {
3         if [ ! "`grep /usr/lib/libfakeroot etc/ld.so.conf`" ]; then
4                 echo -n "updating /etc/ld.so.conf... "
5                 echo "/usr/lib/libfakeroot" >>etc/ld.so.conf
6                 sbin/ldconfig -r .
7                 echo "done."
8         fi
11 # arg 1: the new package version
12 # arg 2: the old package version
13 post_upgrade() {
14         post_install $1
17 # arg 1: the old package version
18 pre_remove() {
19         echo -ne "\nupdating /etc/ld.so.conf... "
20         sed -i -e '/\/usr\/lib\/libfakeroot/d' etc/ld.so.conf
21         sbin/ldconfig -r .
22         echo "done."
25 op=$1
26 shift
28 $op $*