From 778044bae5c7740369607b822d27ece4c405b847 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Mon, 19 May 2014 21:22:38 +0400 Subject: [PATCH] Add update script --- update | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 update 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 -- 2.39.5