From 260d960e47803ed857cbab7f42ce73b61e7f61ef Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Thu, 30 Apr 2009 15:30:29 +0000 Subject: [PATCH] Go back to using git --- .gitignore | 9 +++++++++ mk/cc.mk | 2 +- mk/dist.mk | 6 ++---- 3 files changed, 12 insertions(+), 5 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..5a7e248c --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +.depend +*.o +*.bz2 +dhcpcd +dhcpcd.conf.5 +dhcpcd.core +dhcpcd.8 +dhcpcd-run-hooks +dhcpcd-run-hooks.8 diff --git a/mk/cc.mk b/mk/cc.mk index 71cb4094..3af82a09 100644 --- a/mk/cc.mk +++ b/mk/cc.mk @@ -19,7 +19,7 @@ _CCFLAGS= -Wall -Wextra -Wimplicit -Wshadow -Wformat=2 \ -Winline -Wwrite-strings -Wcast-align -Wcast-qual \ -Wpointer-arith \ -Wdeclaration-after-statement -Wsequence-point -_CC_FLAGS_SH= if ! test -d .svn; then echo ""; else for f in ${_CCFLAGS}; do \ +_CC_FLAGS_SH= if ! test -d .git; then echo ""; else for f in ${_CCFLAGS}; do \ if echo "int main(void) { return 0;} " | \ ${CC} $$f -S -xc -o /dev/null - ; \ then printf "%s" "$$f "; fi \ diff --git a/mk/dist.mk b/mk/dist.mk index 0ed6752d..7b844daf 100644 --- a/mk/dist.mk +++ b/mk/dist.mk @@ -1,5 +1,5 @@ # rules to make a distribution tarball from a svn repo -# Copyright 2008 Roy Marples +# Copyright 2008-2009 Roy Marples GITREF?= HEAD DISTPREFIX?= ${PROG}-${VERSION} @@ -18,9 +18,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: mkdir /tmp/${SNAPDIR} -- 2.47.2