der splitter branch wird zu trunk
This commit is contained in:
parent
c66816957f
commit
c4359c0bd2
96 changed files with 3148 additions and 4500 deletions
1
downloads/README
Normal file
1
downloads/README
Normal file
|
@ -0,0 +1 @@
|
|||
Vorhandene downloads (programme oder chaosradios) sollten per Hand in das Verzeichnis "programme" bzw. "chaosradio" kopiert werden, um Bandbreite zu sparen.
|
5
downloads/chaosradio.lst
Normal file
5
downloads/chaosradio.lst
Normal file
|
@ -0,0 +1,5 @@
|
|||
chaosradio_47.mp3 ftp://ftp.ccc.de/chaosradio/cr47/chaosradio47.mp3
|
||||
chaosradio_70.mp3 ftp://ftp.ccc.de/chaosradio/cr70/chaosradio70.mp3
|
||||
chaosradio_72.mp3 ftp://ftp.ccc.de/chaosradio/cr72/chaosradio72.mp3
|
||||
chaosradio_88.ogg ftp://ftp.ccc.de/chaosradio/cr88/chaosradio_88.ogg
|
||||
chaosradio_99.ogg ftp://ftp.ccc.de/chaosradio/cr99/chaosradio_99.ogg
|
90
downloads/get_files.sh
Executable file
90
downloads/get_files.sh
Executable file
|
@ -0,0 +1,90 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Parameter: LISTE ACTION
|
||||
# z.B. ./get_files programme download
|
||||
#
|
||||
|
||||
set -eu
|
||||
|
||||
# die Key-Server muessen wohl einzeln angegeben werden - somit einzelne Direktiven
|
||||
KEY_SERVERS="x-hkp://pgp.mit.edu --keyserver hkp://subkeys.pgp.net"
|
||||
|
||||
function download_file()
|
||||
{
|
||||
local QUELLE=$(grep "^$1[[:space:]]" $URL_FILE | cut -f 2)
|
||||
wget --continue --output-document "$DEST_DIR/$1" "$QUELLE"
|
||||
}
|
||||
|
||||
function verify_file()
|
||||
{
|
||||
# eventuell die Datei herunterladen
|
||||
[ ! -e "$DEST_DIR/$1" ] && download_file "$1"
|
||||
[ ! -e "$DEST_DIR/$1" ] && return 1
|
||||
# Signatur-URL ermitteln
|
||||
local SIG_URL=$(grep "^$1[[:space:]]" $URL_FILE | cut -f 3)
|
||||
# bei fehlender Signatur erfolgreich abbrechen
|
||||
[ -z "$SIG_URL" ] && return 0
|
||||
# Signatur herunterladen
|
||||
local SIG_FILE=$DEST_DIR/$(basename "$SIG_URL")
|
||||
[ ! -e "$SIG_FILE" ] && wget --output-document "$SIG_FILE" "$SIG_URL"
|
||||
# pruefen - notfalls den Schluessel importieren
|
||||
# erstmal Ausgabe unterdruecken
|
||||
if gpg --quiet --keyserver $KEY_SERVERS --keyserver-options auto-key-retrieve --verify "$SIG_FILE" "$DEST_DIR/$1" &>/dev/null
|
||||
then return 0
|
||||
else gpg --quiet --keyserver $KEY_SERVERS --keyserver-options auto-key-retrieve --verify "$SIG_FILE" "$DEST_DIR/$1"
|
||||
# do it again (with output), if verification failed
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
########### main ############
|
||||
|
||||
[ $# -eq 0 ] && echo "die Download-Liste muss angegeben werden!" && exit 1
|
||||
URL_FILE=$(dirname $0)/${1}.lst
|
||||
DEST_DIR=$(dirname $0)/${1}
|
||||
shift
|
||||
[ ! -e "$URL_FILE" ] && echo "Die Datei ($URL_FILE) existiert nicht!" && exit 2
|
||||
[ -e "$DEST_DIR" ] || mkdir -p "$DEST_DIR"
|
||||
|
||||
ACTION=help
|
||||
[ $# -gt 0 ] && ACTION=$1 && shift
|
||||
|
||||
|
||||
case "$ACTION" in
|
||||
download )
|
||||
cut -f 1 "$URL_FILE" | while read a
|
||||
do [ ! -e "$DEST_DIR/$a" ] && download_file "$a"
|
||||
done
|
||||
# ExitCode auf Null setzen
|
||||
true
|
||||
;;
|
||||
verify )
|
||||
cut -f 1 "$URL_FILE" | while read a
|
||||
do if verify_file "$a"
|
||||
then true
|
||||
else echo "Verification of '$a' failed ..."
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
;;
|
||||
clean )
|
||||
# Datei loeschen
|
||||
cut -f 1 "$URL_FILE" | while read a; do rm -f "$DEST_DIR/$a"; done
|
||||
# Signatur loeschen, falls vorhanden
|
||||
cut -f 3 "$URL_FILE" | sed /^$/d | while read a; do rm -f "$DEST_DIR/$(basename $a)"; done
|
||||
;;
|
||||
install )
|
||||
[ $# -eq 0 ] && echo 'You need to specify the destination directory!' && exit 1
|
||||
INST_DIR=$1
|
||||
[ ! -e "$INST_DIR" ] && mkdir -p "$INST_DIR"
|
||||
cut -f 1 "$URL_FILE" | while read a
|
||||
do [ -e "$DEST_DIR/$a" ] || download_file "$a"
|
||||
cp "$DEST_DIR/$a" "$INST_DIR/"
|
||||
done
|
||||
;;
|
||||
* )
|
||||
echo "Syntax: $0 LIST { download | install | clean } [ZIEL_VERZEICHNIS]"
|
||||
echo
|
||||
;;
|
||||
esac
|
||||
|
12
downloads/programme.lst
Normal file
12
downloads/programme.lst
Normal file
|
@ -0,0 +1,12 @@
|
|||
Thunderbird Setup 1.0.7.exe http://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/1.0.7/win32/de-DE/Thunderbird%20Setup%201.0.7.exe http://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/1.0.7/win32/de-DE/Thunderbird%20Setup%201.0.7.exe.asc
|
||||
Thunderbird 1.0.7.dmg http://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/1.0.7/mac/de-DE/Thunderbird%201.0.7.dmg http://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/1.0.7/mac/de-DE/Thunderbird%201.0.7.dmg.asc
|
||||
thunderbird-1.0.7.tar.gz http://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/1.0.7/linux-i686/de-DE/thunderbird-1.0.7.tar.gz http://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/1.0.7/linux-i686/de-DE/thunderbird-1.0.7.tar.gz.asc
|
||||
enigmail-0.93.0-tb10-win32.xpi http://www.mozilla-enigmail.org/downloads/enigmail-0.93.0-tb10-win32.xpi http://www.mozilla-enigmail.org/downloads/enigmail-0.93.0-tb10-win32.xpi.asc
|
||||
enigmail-0.93.0-tb10-linux.xpi http://www.mozilla-enigmail.org/downloads/enigmail-0.93.0-tb10-linux.xpi http://www.mozilla-enigmail.org/downloads/enigmail-0.93.0-tb10-linux.xpi.asc
|
||||
enigmail-0.93.0-tb10-darwin.xpi http://www.mozilla-enigmail.org/downloads/enigmail-0.93.0-tb10-darwin.xpi http://www.mozilla-enigmail.org/downloads/enigmail-0.93.0-tb10-darwin.xpi.asc
|
||||
enigmail-de-0.9x.xpi http://www.mozilla-enigmail.org/downloads/lang/0.9x/enigmail-de-0.9x.xpi
|
||||
gnupg-w32cli-1.4.2.exe ftp://ftp.gnupg.org/gcrypt/binary/gnupg-w32cli-1.4.2.exe ftp://ftp.gnupg.org/gcrypt/binary/gnupg-w32cli-1.4.2.exe.sig
|
||||
gnupg-1.4.2.tar.bz2 ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-1.4.2.tar.bz2 ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-1.4.2.tar.bz2.sig
|
||||
shellopn.exe http://www.joachimschlosser.de/downloads/shellopn.exe
|
||||
shellopn.zip http://www.joachimschlosser.de/downloads/shellopn.zip
|
||||
systemausfall-info.0.asc https://systemausfall.org/schluessel/systemausfall-info.0.asc
|
38
downloads/resample.sh
Executable file
38
downloads/resample.sh
Executable file
|
@ -0,0 +1,38 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Parameter: INPUTFILES
|
||||
#
|
||||
|
||||
set -eu
|
||||
|
||||
# eine Sample-Rate von weniger als 26000 bereitet wohl Probleme - das neue ogg ist dann tot
|
||||
ENC_OPTIONS="--quality=2 --max-bitrate=64 --resample=26000"
|
||||
# the input encoding will be ingnored for the wav-output of mp3-decoder
|
||||
INPUT_OPTIONS="--raw --raw-chan=1 --raw-bits=16 --raw-rate=44100"
|
||||
|
||||
function decode_input()
|
||||
{
|
||||
if [[ "$1" =~ "\.mp3$" ]]
|
||||
then mp3-decoder --wav - "$1"
|
||||
else oggdec --quiet -R -b 16 -o - "$1"
|
||||
fi
|
||||
}
|
||||
|
||||
function check_file()
|
||||
{
|
||||
if [[ "$1" =~ "\.mp3$" ]] || [[ "$1" =~ "\.ogg$" ]]
|
||||
then if [ -e "$1" ]
|
||||
then return 0
|
||||
else echo "die Datei ($1) exisitiert nicht!" >&2
|
||||
return 1
|
||||
fi
|
||||
else echo "ungueltige Datei ($1): nur 'mp3' oder 'ogg' werden unterstuetzt"
|
||||
return 2
|
||||
fi
|
||||
}
|
||||
|
||||
######### los geht's ##########
|
||||
|
||||
for a in $@
|
||||
do check_file "$1" && decode_input "$1" | oggenc $INPUT_OPTIONS $ENC_OPTIONS --output="${a%.*}-low.ogg" -
|
||||
done
|
Loading…
Add table
Add a link
Reference in a new issue