summaryrefslogtreecommitdiffstats
path: root/bin/git-tftpd
blob: 038932badd8c3959ac4d958f464e7164a6ced26f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/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 --logfile="$dir/../var/git-tftpd.log" \
    --pidfile="$dir/../var/git-tftpd.pid" "${args[@]}" git-tftpd "$@"