X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=update;h=e026690663039911fd6335fbd6116f7371dc5283;hb=049f238d8b23e2ab7f543b33d52dd2544ffa7b22;hp=e511395b6d39f108b04f2c96744eec2280be8892;hpb=778044bae5c7740369607b822d27ece4c405b847;p=mimedecode.git diff --git a/update b/update index e511395..e026690 100755 --- a/update +++ b/update @@ -1,12 +1,11 @@ #! /bin/sh -current="`git config --get remote.current.url`" && +"$HOME"/admin/prog/git-scripts/update || exit 1 -git pull --ff-only current master && git push web && +current="`pwd`" +origin="`git config --get --path remote.origin.url`" # 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 +cd "$origin" +exec rsync -ahP "$current"/mimedecode.docbook "$current"/mimedecode.man \ + "$current"/mimedecode.html "$current"/mimedecode.txt .