2 # parameter: directory with DF or DFG
3 # purpose: rip off everything unneeded for diffing.
9 echo "supply a valid path as first parameter!"
10 elif [[ "$DFDIR" == "$ROOTDIR" ]]
12 echo "omg. you REALLY shouldnt apply this on your root dir."
13 elif [[ "$DFDIR" == "$DOTDIR" ]]
15 echo "you have to cd out of the distrib dir. just cd .. and call again"
16 elif [[ ! -e "$DFDIR/data/init" ]]
18 echo "your target doesnt look like a DF dir. exitting."
22 mv $DFDIR/data
/init
$MDTMP/init
23 mv $DFDIR/raw
/objects
$MDTMP/objects
27 mv $MDTMP/init
$DFDIR/data
/
29 mv $MDTMP/objects
$DFDIR/raw
/