From 25c662ba4dffcfb7bf8cb5d551d61e979fcaece5 Mon Sep 17 00:00:00 2001 From: "https://id.koumbit.net/anarcat" Date: Mon, 29 Dec 2014 23:13:20 +0000 Subject: [PATCH 1/3] add script to add transmission files into git-annex --- doc/tips/transmission_integration.sh | 44 ++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 doc/tips/transmission_integration.sh diff --git a/doc/tips/transmission_integration.sh b/doc/tips/transmission_integration.sh new file mode 100644 index 0000000000..aa7561d67a --- /dev/null +++ b/doc/tips/transmission_integration.sh @@ -0,0 +1,44 @@ +#! /bin/sh + +# This simple script will make sure files downloaded by the +# [Transmission BitTorrent client](https://www.transmissionbt.com/) will +# be added into git-annex. +# +# To enable it, install it to /usr/local/bin and add the following to +# your settings.json: +# "script-torrent-done-enabled": true, +# "script-torrent-done-filename": "/usr/local/bin/transmission-git-annex-add", +# -- [[anarcat]] + +set -e + +# environment from transmission: +# TR_APP_VERSION +# TR_TIME_LOCALTIME +# TR_TORRENT_DIR +# TR_TORRENT_HASH +# TR_TORRENT_ID +# TR_TORRENT_NAME +# source: https://trac.transmissionbt.com/wiki/Scripts + +if [ -z "$TR_APP_VERSION" ]; then + echo "missing expected $TR_APP_VERSION from Transmission" + exit 1 +fi + +message="transmission adding torrent '$TR_TORRENT_NAME' + +TR_APP_VERSION: $TR_APP_VERSION +TR_TIME_LOCALTIME: $TR_TIME_LOCALTIME +TR_TORRENT_DIR: $TR_TORRENT_DIR +TR_TORRENT_HASH: $TR_TORRENT_HASH +TR_TORRENT_ID: $TR_TORRENT_ID +TR_TORRENT_NAME: $TR_TORRENT_NAME +" + +echo $message +cd "$TR_TORRENT_DIR" +git annex add "$TR_TORRENT_NAME" && \ +git commit -F- < Date: Mon, 29 Dec 2014 23:44:03 +0000 Subject: [PATCH 2/3] transmission: preserve newlines in stdout debug, comments --- doc/tips/transmission_integration.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/tips/transmission_integration.sh b/doc/tips/transmission_integration.sh index aa7561d67a..056cc69230 100644 --- a/doc/tips/transmission_integration.sh +++ b/doc/tips/transmission_integration.sh @@ -36,7 +36,11 @@ TR_TORRENT_ID: $TR_TORRENT_ID TR_TORRENT_NAME: $TR_TORRENT_NAME " -echo $message +# heredocs preserve newlines +cat < Date: Tue, 30 Dec 2014 10:40:11 +0000 Subject: [PATCH 3/3] Added a comment: it need to be built with -fPIE -pie. --- .../comment_3_3c37c32fe851f2a8cd854ccdd64b4453._comment | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 doc/bugs/__91__Android__93___5.0_needs_PIE_executables___40__git_annex_does_not_work_on_android_5.0__41__/comment_3_3c37c32fe851f2a8cd854ccdd64b4453._comment diff --git a/doc/bugs/__91__Android__93___5.0_needs_PIE_executables___40__git_annex_does_not_work_on_android_5.0__41__/comment_3_3c37c32fe851f2a8cd854ccdd64b4453._comment b/doc/bugs/__91__Android__93___5.0_needs_PIE_executables___40__git_annex_does_not_work_on_android_5.0__41__/comment_3_3c37c32fe851f2a8cd854ccdd64b4453._comment new file mode 100644 index 0000000000..5509e86686 --- /dev/null +++ b/doc/bugs/__91__Android__93___5.0_needs_PIE_executables___40__git_annex_does_not_work_on_android_5.0__41__/comment_3_3c37c32fe851f2a8cd854ccdd64b4453._comment @@ -0,0 +1,8 @@ +[[!comment format=mdwn + username="https://www.google.com/accounts/o8/id?id=AItOawkev8_Er652-NMvfEpn3r5VwulP5phjNuI" + nickname="jerome" + subject="it need to be built with -fPIE -pie." + date="2014-12-30T10:40:11Z" + content=""" +https://code.google.com/p/android-developer-preview/issues/detail?id=888 +"""]]