diff options
author | Alexander <alex@spline.inf.fu-berlin.de> | 2015-08-28 02:43:22 +0200 |
---|---|---|
committer | Alexander <alex@spline.inf.fu-berlin.de> | 2015-08-28 02:43:22 +0200 |
commit | b5e718d6f4d37ca31c12eef603c6199c4b89a046 (patch) | |
tree | 3f8a96985aae9a998a9a65e9cc8bda3f12ae0fc0 /bin | |
download | git-tftpd-b5e718d6f4d37ca31c12eef603c6199c4b89a046.tar.gz git-tftpd-b5e718d6f4d37ca31c12eef603c6199c4b89a046.tar.bz2 git-tftpd-b5e718d6f4d37ca31c12eef603c6199c4b89a046.zip |
Initial commit
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/git-tftpd | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/bin/git-tftpd b/bin/git-tftpd new file mode 100755 index 0000000..b78b6e9 --- /dev/null +++ b/bin/git-tftpd @@ -0,0 +1,17 @@ +#!/bin/bash +dir="$(dirname "$0")" + +args=() +while [[ $# > 0 && "$1" != "--" ]] ; do + args+=("$1") + shift +done + +if [[ "$1" = "--" ]]; then + shift +else + set -- "${args[@]}" + args=() +fi + +PYTHONPATH="$dir/../src/" twistd "${args[@]}" git-tftpd "$@" |