#!/bin/sh
#######################################
# v0.2
#
# clean DOC's
#-------------------------------------
cd /usr/share/doc
prefix="bd_* bn_* da_* \
de_* dk_* el_* \
es_* fr_* id_* \
it_* ja_* nl_* \
no_* pl_* pt_* \
hu_* mn_* ro_* \
sr_* tr_* zh_*"
for object in $prefix
do
echo "deleting /usr/share/doc/$object"
rm -r $object > /dev/null 2>&1
done
# clean PORT's
#-------------------------------------
cd /usr/ports
folder="arabic chinese french \
german hebrew hungarian \
japanese korean portuguese \
polish ukrainian vietnamese"
for object in $folder
do
echo "deleting /usr/ports/$object"
rm -r $object > /dev/null 2>&1
done
# clean old OBJECT
#echo "deleting old files from /usr/obj"
#rm -r /usr/obj > /dev/null 2>&1
echo "cleaning ok! ;)"