From: Oleg Broytman Date: Mon, 19 May 2014 17:22:38 +0000 (+0400) Subject: Add update script X-Git-Tag: v2.6.0~9 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=778044bae5c7740369607b822d27ece4c405b847;p=mimedecode.git Add update script --- diff --git a/update b/update new file mode 100755 index 0000000..e511395 --- /dev/null +++ b/update @@ -0,0 +1,12 @@ +#! /bin/sh + +current="`git config --get remote.current.url`" && + +git pull --ff-only current master && git push web && + +# Copy mimedecode.docbook with timestamp to avoid rebuilding +rsync -ahP "$current"/mimedecode.docbook "$current"/mimedecode.man \ + "$current"/mimedecode.html "$current"/mimedecode.txt . && + +cd "$current" && +exec git pull origin