Pass overwrite to tar for web site upload
[git-tools-moved-to-github.git] / id-deb-build / id-upload.sh
index 3a72de7..671ae84 100755 (executable)
@@ -22,10 +22,10 @@ set -e
 if test -f Doxyfile; then
        doxygen >out 2>stderr
 fi
-(cd doc && make ${PRODUCT}.pdf index.html)
+(cd doc && make ${PROD}.pdf index.html)
 cp NEWS doc/
-cp ${TAR} ftp.indexdata.dk:/home/ftp/pub/${PROD}/
-tar cz --exclude=.git -f - dox doc|ssh website "cd software/${PROD}; tar xzf -"
+scp ${TAR} ftp.indexdata.dk:/home/ftp/pub/${PROD}/
+tar cz --exclude=.git -f - dox doc|ssh website "cd /var/www/software/${PROD}; tar x --overwrite -z -f -"
 # Local Variables:
 # mode:shell-script
 # sh-indentation: 2