X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;ds=inline;f=contrib%2Ffix.8;fp=contrib%2Ffix.8;h=0000000000000000000000000000000000000000;hb=0b523c435c01ba9f4c2fd258baabb792546b7836;hp=75d5a3845011993bb8d1a6cff1c02eff1e48dba9;hpb=8d194d3676a27055a8a5f35a53a162334a090d26;p=dak.git diff --git a/contrib/fix.8 b/contrib/fix.8 deleted file mode 100755 index 75d5a384..00000000 --- a/contrib/fix.8 +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh - -total=0 - -for i in $(cat foo.2); do - if [ -f $i -a ! -L $i ]; then - dir=$(dirname $i) - file=$(basename $i) - size=$(du -b $i | cut -f 1) - arch=$(echo $i | sed -e "s#.*binary-\([a-z]*\).*#\1#") - pushd $dir > /dev/null - destdir=/home/troup/removed-from-ftp/badmd5-$arch/ - if [ ! -d $destdir ]; then mkdir $destdir; fi - mv -iv $file $destdir/ - ln -s ../../../../potato/$(echo $i | sed -e "s#.*woody/##") . - popd > /dev/null - total=$(expr $total + $size) - fi -done - -echo -echo "Replaced $total bytes." -