#!/bin/sh # Make sure grass libraries are picked up by ldconfig # Lifted from xfree86 package's shell-lib.sh script set -e dir="/usr/lib/grass/lib" ldsoconf="/etc/ld.so.conf" # is the line not already present? if ! fgrep -qsx "$dir" "$ldsoconf"; then echo "$dir" >> "$ldsoconf" fi if [ "$1" = "configure" ]; then ldconfig fi #DEBHELPER# exit 0