]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Go back to using git
authorRoy Marples <roy@marples.name>
Thu, 30 Apr 2009 15:34:14 +0000 (15:34 +0000)
committerRoy Marples <roy@marples.name>
Thu, 30 Apr 2009 15:34:14 +0000 (15:34 +0000)
.gitignore [new file with mode: 0644]
mk/cc.mk
mk/dist.mk

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..5a7e248
--- /dev/null
@@ -0,0 +1,9 @@
+.depend
+*.o
+*.bz2
+dhcpcd
+dhcpcd.conf.5
+dhcpcd.core
+dhcpcd.8
+dhcpcd-run-hooks
+dhcpcd-run-hooks.8
index c801eace0552d02afe00da4ff7bc4399a3fc7721..fcf05351625e4db8b452afeb23fa782e42f0f3be 100644 (file)
--- a/mk/cc.mk
+++ b/mk/cc.mk
@@ -15,7 +15,7 @@ _CCFLAGS=     -pedantic -Wall -Wunused -Wimplicit -Wshadow -Wformat=2 \
                -Wbad-function-cast -Wnested-externs -Wcomment -Winline \
                -Wchar-subscripts -Wcast-align -Wno-format-nonliteral \
                -Wdeclaration-after-statement -Wsequence-point -Wextra
-_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 ${CC} $$f -S -o /dev/null -xc /dev/null >/dev/null 2>&1; \
                then printf "%s" "$$f "; fi \
                done; fi
index 455397dc9920a6e32a933c81aaad5e6e53b95206..c4c194752fcb83d72be373d7f1e253f42bb21401 100644 (file)
@@ -1,5 +1,5 @@
 # rules to make a distribution tarball from a svn repo
-# Copyright 2008 Roy Marples <roy@marples.name>
+# Copyright 2008-2009 Roy Marples <roy@marples.name>
 
 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}