summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin.dahyabhai@pobox.com>2008-03-20 12:49:58 -0400
committerNalin Dahyabhai <nalin.dahyabhai@pobox.com>2008-03-20 12:49:58 -0400
commit87170fbbb05e08b68b66bef04914c1346f90242c (patch)
tree43392e43821b26af7b1a116da6507df399d1e9ca
parentb116b73a275bf57e1f2ef2905e8cd6477de05bfa (diff)
downloadautologin-87170fbbb05e08b68b66bef04914c1346f90242c.tar.gz
autologin-87170fbbb05e08b68b66bef04914c1346f90242c.tar.xz
autologin-87170fbbb05e08b68b66bef04914c1346f90242c.zip
finish fixing the archive targetHEADmaster
-rw-r--r--Makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index f59930c..b7efc4c 100644
--- a/Makefile
+++ b/Makefile
@@ -30,7 +30,7 @@ tag:
force-tag:
git tag -f $(GITTAG)
-ARCHIVEOUTDIR=$(pwd)
+ARCHIVEOUTDIR=$(shell pwd)
local-archive:
$(MAKE) archive ORIGIN=$(ARCHIVEOUTDIR)
@@ -39,10 +39,11 @@ archive:
repo=`pwd`; \
tmpdir=`mktemp -d /tmp/make_archive_XXXXXX`; \
if test -d "$$tmpdir" ; then \
- git clone $(ORIGIN) $$tmpdir/autologin;\
- cd $$tmpdir/autologin;\
- git checkout $(GITTAG) $(distdir);\
- tar --exclude=.git cvzf $(distdir).tar.gz $(distdir); \
+ git clone $(ORIGIN) $$tmpdir/$(distdir);\
+ cd $$tmpdir/$(distdir);\
+ git checkout $(GITTAG);\
+ cd $$tmpdir;\
+ tar cvz --exclude=.git -f $(distdir).tar.gz $(distdir); \
mkdir -p $$tmpdir/rpm-build-top;\
rpmbuild \
--define "_topdir $$tmpdir/rpm-build-top" \