]> git.lyx.org Git - lyx.git/blob - development/tools/create_torrent
Adapt ctest tagging rules to the changed file names of templates and examples.
[lyx.git] / development / tools / create_torrent
1 #!/bin/sh
2 #Create torrent for the bundled installers (Use only for huge files >100 MB)
3 #Run this script from the root of the local ftp directory structure and give it the path to the binary, e.g.:
4 #~/lyx-devel/development/tools/create_torrent devel/lyx-2.3/lyx-2.3.0rc2/LyX-230RC-2-Bundle-1.exe
5 #Putting the torrent next to binaries on ftp is enough, you don't need to mess with trackers.
6
7 #path to bundle, from the root of ftp directory
8 bundle="$1"
9
10 if ! [ -e "${bundle}" ]; then echo Wrong path. ; exit; fi
11
12
13 #the tracker here is just an excuse, in reality the backup links will be used
14 #in parallel by decent torrent clients while naturally solving the problem of
15 #selecting the fastest mirror
16
17 mktorrent -a udp://tracker.opentrackr.org:1337/announce -l 22 -v "${bundle}" \
18 -w http://ftp.lyx.org/pub/lyx/"${bundle}" \
19 -w http://ftp.ntua.gr/pub/X11/LyX/"${bundle}" \
20 -w http://ftp.icm.edu.pl/packages/lyx/"${bundle}" \
21 -w http://mirror.ufs.ac.za/applications/lyx/"${bundle}" \
22 -w ftp://ftp.lyx.org/pub/lyx/"${bundle}" \
23 -w ftp://ftp.ntua.gr/pub/X11/LyX/"${bundle}" \
24 -w ftp://ftp.icm.edu.pl/packages/lyx/"${bundle}" \
25 -w ftp://mirror.ufs.ac.za/applications/lyx/"${bundle}" \
26 -w ftp://ftp.ucsd.edu/LyX/"${bundle}"