Merge branch 'master' of ssh://git-annex.branchable.com

This commit is contained in:
Joey Hess 2014-12-30 12:51:00 -04:00
commit 000fe26d44
2 changed files with 56 additions and 0 deletions
doc
bugs/__91__Android__93___5.0_needs_PIE_executables___40__git_annex_does_not_work_on_android_5.0__41__
tips

View file

@ -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
"""]]

View file

@ -0,0 +1,48 @@
#! /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
"
# heredocs preserve newlines
cat <<EOF
$message
EOF
# add the actual torrent and commit whatever's left to commit
cd "$TR_TORRENT_DIR"
git annex add "$TR_TORRENT_NAME" && \
git commit -F- <<EOF
$message
EOF