summaryrefslogtreecommitdiff
path: root/createtorrent
diff options
context:
space:
mode:
authorNicolás Reynolds <apoyosis@correo.inta.gob.ar>2011-05-22 18:06:45 -0300
committerNicolás Reynolds <apoyosis@correo.inta.gob.ar>2011-05-22 18:06:45 -0300
commit3db6b4547b2e25ac2f250781e63754a7319164bb (patch)
tree594f0e0878f571678e4d097ed3babab97ddeaade /createtorrent
parentccd5e7185a586e2ee6303d94600d16ec36e1e5e6 (diff)
2011.05.22 build
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