fix make release target
authorIvan Kohler <ivan-debian@420.am>
Thu, 15 Mar 2012 20:58:51 +0000 (13:58 -0700)
committerIvan Kohler <ivan-debian@420.am>
Thu, 15 Mar 2012 20:58:51 +0000 (13:58 -0700)
Makefile

index bd87669..b603b8c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -426,13 +426,13 @@ release:
        git pull
 
        # Tag the release
        git pull
 
        # Tag the release
-       git tag ${TAG}
+       git tag -f ${TAG}
 
        #cd /home/ivan
 
        #cd /home/ivan
-       git archive ${TAG} | gzip -9 >freeside-${VERSION}.tar.gz
+       git archive --prefix=freeside-${VERSION}/ ${TAG} | gzip -9 >freeside-${VERSION}.tar.gz
 
        scp freeside-${VERSION}.tar.gz ivan@420.am:/var/www/www.sisd.com/freeside/
 
        scp freeside-${VERSION}.tar.gz ivan@420.am:/var/www/www.sisd.com/freeside/
-       mv freeside-${VERSION} freeside-${VERSION}.tar.gz ..
+       mv freeside-${VERSION}.tar.gz ..
 
        #these things failing should not make release target fail, so: "|| true"
 
 
        #these things failing should not make release target fail, so: "|| true"