]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Go back to using git
authorRoy Marples <roy@marples.name>
Thu, 30 Apr 2009 15:30:29 +0000 (15:30 +0000)
committerRoy Marples <roy@marples.name>
Thu, 30 Apr 2009 15:30:29 +0000 (15:30 +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 71cb4094859c5ca29626ddf6426cfd92139b1c5b..3af82a0993bc7fab56f79ceeca093c52b32c0bdf 100644 (file)
--- 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 \
index 0ed6752d9e361399259bf8e83c3f5328be92efed..7b844daf99276af3b8ab4c08bddb3d565fd68163 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}