Tag
Hash :
c8d81600
Author :
Date :
2019-08-09T00:15:55
SUBDIR = libexec got tog
.PHONY=release dist
.if make(regress) || make(obj) || make(clean) || make(release)
SUBDIR += regress
.endif
.include "got-version.mk"
release: clean
sed -i -e "s/_RELEASE=No/_RELEASE=Yes/" got-version.mk
${MAKE} dist
sed -i -e "s/_RELEASE=Yes/_RELEASE=No/" got-version.mk
dist: clean
mkdir /tmp/got-${GOT_VERSION}
pax -rw * /tmp/got-${GOT_VERSION}
find /tmp/got-${GOT_VERSION} -name obj -type d -delete
rm /tmp/got-${GOT_VERSION}/got-dist.txt
tar -C /tmp -zcf got-${GOT_VERSION}.tar.gz got-${GOT_VERSION}
rm -rf /tmp/got-${GOT_VERSION}
tar -ztf got-${GOT_VERSION}.tar.gz | sed -e 's/^got-${GOT_VERSION}//' \
| sort > got-dist.txt.new
diff -u got-dist.txt got-dist.txt.new
rm got-dist.txt.new
.include <bsd.subdir.mk>