1
0
mirror of https://github.com/danog/gigaclone.git synced 2024-11-30 04:29:09 +01:00

Update gigaclone

This commit is contained in:
Video download 2015-09-26 09:33:05 +02:00
parent b85a67dfc7
commit 14f9e86c2c

View File

@ -1,16 +1,23 @@
#!/bin/bash #!/bin/bash
set -e set -e
n=0 n=0
y=y y=1
until [ "$n" = "1000" ];do { until [ "$n" = "1000" ];do {
y="$y y="$y
y" 1"
n="$(($n + 1))" n="$(($n + 1))"
};done };done
dir="$PWD" dir="$PWD"
tmp="$dir/tmp" tmp="$dir/tmp"
copy="$dir/copy" copy="$dir/copy"
mkdir $tmp mkdir $tmp $tmp/usr
cd $tmp
git clone https://github.com/adrianlopezroche/fdupes
cd fdupes
make fdupes --prefix=$tmp/usr
make install
export PATH="$PATH:$tmp/usr/bin"
cd $tmp cd $tmp
wget http://profile.gigaset.net/logs.tgz && tar -xzf logs.tgz wget http://profile.gigaset.net/logs.tgz && tar -xzf logs.tgz
@ -21,7 +28,7 @@ sed -i '/.*404.*/d;/.*403.*/d;s/\sHTTP.*//g;s/.*\s/http:\/\/profile\.gigaset\.ne
echo "Remove duplicates for $f" echo "Remove duplicates for $f"
awk '!seen[$0]++' $f>$tmp/1 awk '!seen[$0]++' $f>$tmp/1
echo "Download urls in $f." echo "Download urls in $f."
wget -i $tmp/1 -x -N -P $dir wget -i $tmp/1 -x -N -P $dir >/dev/null
};done };done
cd $dir cd $dir