summaryrefslogtreecommitdiff
path: root/createtorrent
diff options
context:
space:
mode:
Diffstat (limited to 'createtorrent')
-rwxr-xr-xcreatetorrent15
1 files changed, 15 insertions, 0 deletions
diff --git a/createtorrent b/createtorrent
new file mode 100755
index 0000000..fccf5f5
--- /dev/null
+++ b/createtorrent
@@ -0,0 +1,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