Pass overwrite to tar for web site upload
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 27 Jun 2012 09:24:51 +0000 (11:24 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 27 Jun 2012 09:24:51 +0000 (11:24 +0200)
id-deb-build/id-upload.sh

index f6c08fe..671ae84 100755 (executable)
@@ -25,7 +25,7 @@ fi
 (cd doc && make ${PROD}.pdf index.html)
 cp NEWS doc/
 scp ${TAR} ftp.indexdata.dk:/home/ftp/pub/${PROD}/
-tar cz --exclude=.git -f - dox doc|ssh website "cd /var/www/software/${PROD}; tar xzf -"
+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