SRCS=		darwinports.tcl darwinports_dlist.tcl
INSTALLDIR=	${TCL_PACKAGE_DIR}/darwinports1.0

include ../../Mk/dports.mk
include ../../Mk/dports.autoconf.mk

all:

clean:

distclean: clean

install:
	@mkdir -p ${INSTALLDIR}
	@set -x; for file in ${SRCS}; do \
		$(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 444 $$file ${INSTALLDIR}; \
	done
	@../pkg_mkindex.tcl ${INSTALLDIR}

SRCS=		darwinports.tcl darwinports_dlist.tcl
INSTALLDIR=	${TCL_PACKAGE_DIR}/darwinports1.0
DARWIN_OLD_PKGINDEX=${TCL_PACKAGE_DIR}/8.3/darwinports1.0/pkgIndex.tcl

include ../../Mk/dports.mk
include ../../Mk/dports.autoconf.mk

all:

clean:

distclean: clean

install:
	@mkdir -p ${INSTALLDIR}
	@set -x; for file in ${SRCS}; do \
		$(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 444 $$file ${INSTALLDIR}; \
	done
	@../pkg_mkindex.tcl ${INSTALLDIR}
# XXX Prior installations of dports on Darwin installed darwinports1.0 in a version-specific Tcl path
	@if test ${TCL_PACKAGE_DIR} -ef "/System/Library/Tcl" ; then \
		if test -f ${DARWIN_OLD_PKGINDEX}; then \
			set -x; \
			rm ${DARWIN_OLD_PKGINDEX}; \
		fi \
	fi

Remove pkgIndex file version-specific installed darwinports1.0 packages, easing upgrade woes.
Remove pkgIndex file version-specific installed darwinports1.0 packages, easing upgrade woes.

git-svn-id: 620571fa9b4bd0cbce9a0cf901e91ef896adbf27@2789 d073be05-634f-4543-b044-5fe20cf6d1d6
