updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / gnustep-base-svn / gnustep-base-svn.install
blob2e91adc53a0fd3e053cdf3bf57781bea12cb4c5a
1 # kate: hl Bash; space-indent on; indent-width 2;
3 LIBDIR="/opt/GNUstep/System/Library/Libraries/"
5 add_ldpath(){
6   echo "Updating GNUStep library paths ..."
7   cp /etc/ld.so.conf /etc/ld.so.conf~
8   grep -v "$LIBDIR" /etc/ld.so.conf~ > /etc/ld.so.conf
9   echo "$LIBDIR" >> /etc/ld.so.conf
10   ldconfig &
13 rem_ldpath(){
14   echo "Updating GNUStep library paths ..."
15   cp /etc/ld.so.conf /etc/ld.so.conf~
16   grep -v "$LIBDIR" /etc/ld.so.conf~ > /etc/ld.so.conf
17   ldconfig &  
20 # arg 1:  the new package version
21 pre_install() {
22   /bin/true
25 # arg 1:  the new package version
26 post_install() {
27   add_ldpath
30 # arg 1:  the new package version
31 # arg 2:  the old package version
32 pre_upgrade() {
33   /bin/true
36 # arg 1:  the new package version
37 # arg 2:  the old package version
38 post_upgrade() {
39   add_ldpath
42 # arg 1:  the old package version
43 pre_remove() {
44   /bin/true
47 # arg 1:  the old package version
48 post_remove() {
49   rem_ldpath
52 op="$1"
53 shift
54 "$op" "$@"