#!/bin/sh # (c) 2006 by Dirk Jagdmann # @(#) changes the location of a libtool .la file in all .la files in /usr if [ $# -lt 2 ] ; then echo "usage: fix_libtool_la " exit 1 fi if [ ! -f $2 ] ; then echo "could not find $2" exit 1 fi case "$1" in *!*) echo "$1 contains a !" exit 1 ;; esac find /usr -type f -name '*.la' -exec sed -i -e "s!$1!$2!g" {} ';'