stta/stta/devtools/settools
2021-10-01 20:35:43 +01:00

32 lines
639 B
Bash
Executable File

#!/bin/sh
[ ! "$STTA" ] && echo "STTA no set " && exit 2
. $STTA/envprofile
DEST=$SETUPDIR"/tools"
cd $WEBMINDIR/$MODULE
echo "$msg_mkfiles"
for file in ` echo $LIST_STTACMDS $LIST_TTACMDS $LIST_TCLS `
do
# nom=`echo $file| sed 's/.sh//g' 2>$dn`
cp -p $file".sh" $DEST/$file
chown root:bin $DEST/$file
chmod 555 $DEST/$file
done
for file in ` echo $LIST_LIBS `
do
cp -p $file $DEST/lib/$file
chown root:bin $DEST/lib/$file
chmod 555 $DEST/lib/$file
done
if [ $1 != "pack" ] ; then
sh $MKTOOLS
cp $DEVTOOLS/sttadev /sbin/stta
chown root:bin /sbin/stta
chmod 555 /sbin/stta
fi
cd $origen