exclude git specific files from the distribution tarballs
[citadel.git] / webcit / buildpackages
index 8ca301b529d9e8d25fb7847041d7da3c15ae3d5a..83d535fa5c6bf39be44660eeea0c0cd4ded03cb1 100755 (executable)
@@ -26,8 +26,7 @@ else
        fi
        if test "$done" = "false"; then 
                cd ..
-               mv -- $SYMLINK "webcit-$WEBCIT_VERSION"
-               ln -sf "webcit-$WEBCIT_VERSION" webcit
+               ln -sf webcit "webcit-$WEBCIT_VERSION"
                cd "webcit-$WEBCIT_VERSION"
        else
                cd "../webcit-$WEBCIT_VERSION"
@@ -61,9 +60,9 @@ case $1 in
        ;;
     sourcedist)
        if test "$2" == "dfsg"; then
-           NONDFSG=-"-exclude static/openid-small.gif"
+           NONDFSG=-"-exclude static/webcit_icons/openid-small.gif"
        fi
-       cd ..; tar --exclude .svn --exclude "debian/*" $NONDFSG -cvhzf webcit-${WEBCIT_VERSION}.tar.gz webcit-${WEBCIT_VERSION}/
+       cd ..; tar --exclude .gitignore --exclude "debian/*" $NONDFSG -cvhzf webcit-${WEBCIT_VERSION}.tar.gz webcit-${WEBCIT_VERSION}/
        ;;
     i18n)
        ./webcit -G `pwd`/i18n_templatelist.c