Go back to git
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
# Copyright 2008 Roy Marples <roy@marples.name>
|
||||
# All rights reserved. Released under the 2-clause BSD license.
|
||||
|
||||
GITREF?= HEAD
|
||||
DISTPREFIX?= ${NAME}-${VERSION}
|
||||
DISTFILE?= ${DISTPREFIX}.tar.bz2
|
||||
|
||||
@@ -14,9 +15,7 @@ SNAPDIR= ${DISTPREFIX}-${SNAP}
|
||||
SNAPFILE= ${SNAPDIR}.tar.bz2
|
||||
|
||||
dist:
|
||||
svn export . ${DISTPREFIX}
|
||||
tar cjpf ${DISTFILE} ${DISTPREFIX}
|
||||
rm -rf ${DISTPREFIX}
|
||||
git archive --prefix=${DISTPREFIX}/ ${GITREF} | bzip2 > ${DISTFILE}
|
||||
|
||||
snapshot:
|
||||
rm -rf /tmp/${SNAPDIR}
|
||||
|
||||
15
mk/gitignore.mk
Normal file
15
mk/gitignore.mk
Normal file
@@ -0,0 +1,15 @@
|
||||
# rules to make .gitignore files
|
||||
# Copyright 2008 Roy Marples <roy@marples.name>
|
||||
# All rights reserved. Released under the 2-clause BSD license.
|
||||
|
||||
IGNOREFILES+= ${CLEANFILES}
|
||||
|
||||
.PHONY: .gitignore
|
||||
|
||||
.gitignore:
|
||||
@if test -n "${IGNOREFILES}"; then \
|
||||
echo "Ignoring ${IGNOREFILES}"; \
|
||||
echo ${IGNOREFILES} | tr ' ' '\n' > .gitignore; \
|
||||
fi
|
||||
|
||||
ignore: .gitignore
|
||||
@@ -64,4 +64,4 @@ extra_depend:
|
||||
include ${MK}/sys.mk
|
||||
include ${MK}/os.mk
|
||||
include ${MK}/depend.mk
|
||||
include ${MK}/svnignore.mk
|
||||
include ${MK}/gitignore.mk
|
||||
|
||||
@@ -38,4 +38,4 @@ extra_depend:
|
||||
include ${MK}/sys.mk
|
||||
include ${MK}/os.mk
|
||||
include ${MK}/depend.mk
|
||||
include ${MK}/svnignore.mk
|
||||
include ${MK}/gitignore.mk
|
||||
|
||||
@@ -56,4 +56,4 @@ CLEANFILES+= ${OBJS}
|
||||
clean:
|
||||
@if test -n "${CLEANFILES}"; then echo "rm -f ${CLEANFILES}"; rm -f ${CLEANFILES}; fi
|
||||
|
||||
include ${MK}/svnignore.mk
|
||||
include ${MK}/gitignore.mk
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
# rules to make svn ignore files
|
||||
# Copyright 2008 Roy Marples <roy@marples.name>
|
||||
# All rights reserved. Released under the 2-clause BSD license.
|
||||
|
||||
IGNOREFILES+= ${CLEANFILES}
|
||||
|
||||
ignore:
|
||||
@if test -n "${IGNOREFILES}"; then \
|
||||
echo "=> Ignoring ${IGNOREFILES}"; \
|
||||
files="$$(echo "${IGNOREFILES}" | tr ' ' '\n')"; \
|
||||
efiles="$$(svn propget svn:ignore .)"; \
|
||||
sfiles="$$(printf "$${files}\n$${efiles}" | sort -u)"; \
|
||||
eval svn propset svn:ignore \'"$${sfiles}"\' .; \
|
||||
fi
|
||||
Reference in New Issue
Block a user