Fix making distinfo openresolv-3.9.1
authorRoy Marples <roy@marples.name>
Wed, 17 Jul 2019 16:53:18 +0000 (17:53 +0100)
committerRoy Marples <roy@marples.name>
Wed, 17 Jul 2019 16:53:18 +0000 (17:53 +0100)
Makefile

index 095779b95b04f0a7780b4be7d6c28026843340b2..63aca379969128b5238f1ed874ca1e78b159428b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -42,7 +42,7 @@ DISTINFOSIGN= ${DISTINFO}.asc
 CKSUM?=                cksum -a SHA256
 PGP?=          netpgp
 
-FOSSILID?=     current
+GITREF?=       HEAD
 
 .SUFFIXES: .in
 
@@ -84,10 +84,17 @@ import:
        ${INSTALL} -d /tmp/${DISTPREFIX}
        cp README ${SRCS} /tmp/${DISTPREFIX}
 
-dist:
-       fossil tarball --name ${DISTPREFIX} ${FOSSILID} ${DISTFILEGZ}
-       gunzip -c ${DISTFILEGZ} | xz >${DISTFILE}
-       rm ${DISTFILEGZ}
+dist-git:
+       git archive --prefix=${DISTPREFIX}/ ${GITREF} | xz >${DISTFILE}
+
+dist-inst:
+       mkdir /tmp/${DISTPREFIX}
+       cp -RPp * /tmp/${DISTPREFIX}
+       (cd /tmp/${DISTPREFIX}; make clean)
+       tar -cvjpf ${DISTFILE} -C /tmp ${DISTPREFIX}
+       rm -rf /tmp/${DISTPREFIX}
+
+dist: dist-git
 
 distinfo: dist
        rm -f ${DISTINFO} ${DISTINFOSIGN}