LTCINSTALLDIR=/devel/src/libtool-cache-0.4 DEST=libtool # TODO: add version, uninstall options if [ -f $DEST ]; then if grep -q '^# simple wrapper, libtool is called' $DEST; then echo "Libtool-cache already set up" exit 1 else rm -f libtool-cache.pl libtool-wrapper.exe libtool.orig ln -s ${LTCINSTALLDIR}/libtool-cache.pl . && \ mv $DEST ${DEST}.orig && \ cp ${LTCINSTALLDIR}/libtool.sh $DEST && \ : ln -s ${LTCINSTALLDIR}/libtool-wrapper.exe . && \ echo "libtool-cache set up successfully" fi else echo "$DEST not found, run configure first" exit 1 fi