Make dist now exports the current fossil checkin.
Remove old .git files.
+++ /dev/null
-.gitignore export-ignore
-.gitattributes export-ignore
+++ /dev/null
-.depend
-*.o
-*.So
-*.so
-*.bz2
-config.h
-config.mk
-dhcpcd
-dhcpcd.conf.5
-dhcpcd.core
-dhcpcd.8
-dhcpcd-embedded.c
-dhcpcd-embedded.h
-dhcpcd-run-hooks
-dhcpcd-run-hooks.8
_VERSION!= ${_VERSION_SH}
VERSION= ${_VERSION}$(shell ${_VERSION_SH})
-GITREF?= HEAD
+FOSSILID?= current
+
DISTPREFIX?= ${PROG}-${VERSION}
+DISTFILEGZ?= ${DISTPREFIX}.tar.gz
DISTFILE?= ${DISTPREFIX}.tar.bz2
HOST_SH?= /bin/sh
rm -f .depend config.h config.mk
dist:
- git archive --prefix=${DISTPREFIX}/ ${GITREF} | bzip2 > ${DISTFILE}
+ fossil tarball --name ${DISTPREFIX} ${FOSSILID} ${DISTFILEGZ}
+ gunzip -c ${DISTFILEGZ} | bzip2 >${DISTFILE}
+ rm ${DISTFILEGZ}
import: ${SRCS}
rm -rf /tmp/${DISTPREFIX}
echo "Enabling memory debugging"
echo "CPPFLAGS+= -DDEBUG_MEMORY" >>$CONFIG_MK
echo "CFLAGS+= -g" >>$CONFIG_MK
-elif [ -z "$DEBUG" -a -d .git ]; then
- printf "Found git ... "
+elif [ -z "$DEBUG" -a -f .fslckout ]; then
+ printf "Found fossil checkout ... "
DEBUG=yes
echo "CFLAGS+= -g" >>$CONFIG_MK
else