]> git.phdru.name Git - mimedecode.git/blobdiff - update
Add requirements.txt to sdist; add [egg_info] to setup.cfg
[mimedecode.git] / update
diff --git a/update b/update
index e511395b6d39f108b04f2c96744eec2280be8892..e026690663039911fd6335fbd6116f7371dc5283 100755 (executable)
--- 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 .