summaryrefslogtreecommitdiff
path: root/createtorrent
blob: fccf5f5ca4d3f5fcf27b574ebe337e5835d20877 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

ARCH=$(uname -m)
MOTTO=$(cat motto)

for iso in $@; do
  if [ -f ${iso} ]; then
      mktorrent -c "${MOTTO}" \
                -a http://tracker.openbittorrent.com/announce \
                -a http://tracker.publicbt.com/announce \
                -v \
                -w http://repo.parabolagnulinux.org/isos/${ARCH}/$(basename ${iso}) \
                ${iso}
  fi
done