All pastes #36874 Raw Edit

Anonymous

public text v1 · immutable
#36874 ·published 2006-01-15 16:07 UTC
rendered paste body
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