summaryrefslogtreecommitdiff
path: root/x11-toolkits/iv/scripts/configure
blob: 25f71cd4487c066cdb6c0d8112e258d7b736e7a0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
#
if [ $# -ne 3 ]; then
	echo "This script should only be run by the Makefile."
	exit 1
fi

# First arg is top level ports directory, second is current directory,
# third is the directory containing the dist.
#
PDIR=$1
CDIR=$2
WDIR=$3

touch ${WDIR}/src/config/freebsd.cf
find ${WDIR} -name Makefile -print | xargs rm
xpath=`/usr/bin/which imake 2>/dev/null`
if [ -n $xpath ]; then
	xpath=`echo $xpath | sed 's;/bin/imake$;;'`
	sed "s;/usr/X386;$xpath;" ${WDIR}/makefile >${WDIR}/makefile.foo
	mv ${WDIR}/makefile.foo ${WDIR}/makefile
fi