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

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

for iso in $@; do
  if [ -f ${iso} ]; then
      if [ -f ${iso}.torrent ]; then rm -vf ${iso}.torrent; fi
      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