Browse Source

2015-06-10 _NOWIKI/git2darcs/git2darcs.sh (absoluter Pfad zum darcs executable wg. crontab)

Ignore-this: e1dedbb0d5399c6d7d74fc883dcda66d
freifunk 9 years ago
parent
commit
660f2ee3c5
1 changed files with 2 additions and 1 deletions
  1. 2 1
      _NOWIKI/git2darcs/git2darcs.sh

+ 2 - 1
_NOWIKI/git2darcs/git2darcs.sh

@@ -4,6 +4,7 @@ set -e
 
 PREFIX=/usr/local/bin
 GIT=$PREFIX/git
+DARCS=$PREFIX/darcs
 
 [ -d _darcs -a -d .git ] || exit 1
 
@@ -29,7 +30,7 @@ NEW_COMMITS="$HEAD..$FETCH_HEAD"
 $GIT rev-list --reverse --no-walk "$NEW_COMMITS" > $TMPDIR/rev-list
 
 [ -s $TMPDIR/rev-list ]
-sed -n -E -e 's@^(.+)$@'"$GIT"' reset --hard \1 \&\& '"$GIT"' rev-list --no-walk --pretty=\"%s%n%-b%n%ad %H\" \1 \| tail +2 > '"$TMPDIR/body"' \&\& '"$GIT"' rev-list --no-walk --pretty=format:\"darcs record --all --look-for-adds --logfile='"$TMPDIR/body"' --author \\\"%an <%ae>\\\"\" \1 | tail +2 > '"$TMPDIR/git2darcs.darcs.sh"' \&\& sh '"$TMPDIR/git2darcs.darcs.sh"'@p' $TMPDIR/rev-list > $TMPDIR/git2darcs.sh
+sed -n -E -e 's@^(.+)$@'"$GIT"' reset --hard \1 \&\& '"$GIT"' rev-list --no-walk --pretty=\"%s%n%-b%n%ad %H\" \1 \| tail +2 > '"$TMPDIR/body"' \&\& '"$GIT"' rev-list --no-walk --pretty=format:\"'"$DARCS"' record --all --look-for-adds --logfile='"$TMPDIR/body"' --author \\\"%an <%ae>\\\"\" \1 | tail +2 > '"$TMPDIR/git2darcs.darcs.sh"' \&\& sh '"$TMPDIR/git2darcs.darcs.sh"'@p' $TMPDIR/rev-list > $TMPDIR/git2darcs.sh
 sh $TMPDIR/git2darcs.sh
 
 rm -rf $TMPDIR