Language translations now possible!
#!/bin/shHERE=`pwd`TREEDIR=/tmp/treesKERN=`uname -r`[ -d "$TREEDIR" ] && rm -r "$TREEDIR"mkdir -p "$TREEDIR"/oldcd "$TREEDIR"for I in `ls "$HERE"/*.dep`; doEXT=`basename "$I" .dep`sed -i "/$EXT/d" "$I"if ls -A *.tree > /dev/null 2>&1; then mv -f *.tree old/fi for E in `cat "$I"`; do E=`echo "$E" | sed "s:KERNEL:$KERN:"` if [ -f old/"$E".tree ]; then cp old/"$E".tree . else wget -q http://distro.ibiblio.org/tinycorelinux/4.x/x86/tcz/"$E".tree fi doneif ls -A *.tree >/dev/null; then for B in `ls *.tree`; do EXT=`basename "$B" .tree` grep "^$EXT" "$B" >/dev/null && sed -i "/^$EXT/d" "$B" donefi for F in `cat "$I"`; do E=`echo "$F" | sed "s:KERNEL:$KERN:"` grep "[[:blank:]]$E$" "$TREEDIR"/*.tree >/dev/null && sed -i "/$F/d" "$I" donedone