#!/bin/sh

[ "$STTA" ] && . $STTA/envprofile && show_help $STTATOOLS/help 

echo "$msg_mkfiles"
origen=`pwd`
for file in ` echo $to_copyhere `
do
    name=`basename $file` 
    if [ -d $file ] ; then  
        cd $file
        tar cvf $WEBMINDIR/$MODULE/$name/$name.tar * 
        gzip -f $WEBMINDIR/$MODULE/$name/$name.tar 
        cd $origen
    else 
       cp $file $file".old"
       cp $WEBMINDIR/$MODULE/$name $WEBMINDIR/$MODULE/$name".old"
       cp $file $WEBMINDIR/$MODULE/$name
    fi
done 
echo "$to_copyhere ..."
