#!/bin/sh

[ ! "$STTA" ] && echo "STTA no set "  && exit 2 
. $STTA/envprofile


#keep_ext=".cgi .pl .sh .js .txt"
#keep_prefix="config default module envprofile"
#keep_dir="config_dir images lang help index setup cgitools updates ldaptools gpl"
#f_toremove="envprofile toremove"
#d_toremove="devtools ldap save tmp tools images/.xvpics images/.pics old home-tta dataconf etc-rcs"
#to_copyhere="/etc/webmin/tarantella/config /etc/webmin/tarantella/admin.acl"

# sh $DEVTOOLS/$CP_command 
cd $WEBMINDIR/$MODULE
for file in `ls ` 
do
   [ -f $file ] && {
      case $file in 
        *.cgi|*.sh|*.pl|*.js|*.acl|*.old|*.txt|*.tcl) continue ;;
        config*|default*|module*|dataconf*) continue ;;
        envprofile*) continue ;;
        *) cp $file $TRASHDIR ; rm $file ;;
      esac

   }
done
