Progetti Linux

git-svn-id: svn://10.65.10.50/trunk@11985 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 2004-04-21 21:21:13 +00:00
parent ea084b5afd
commit a9b78e7d47
18 changed files with 49 additions and 17 deletions

2
linux/projects/bmp Executable file
View File

@ -0,0 +1,2 @@
echo Copying $1 to $2
cp $1 $2

1
linux/projects/cmpbmp Executable file
View File

@ -0,0 +1 @@
./compile bmp $1

7
linux/projects/cmpdir Executable file
View File

@ -0,0 +1,7 @@
./cmpmsk $1
./cmprpt $1
./cmpfrm $1
./cmpini $1
./cmpmen $1
./cmpjpg $1
./cmpbmp $1

1
linux/projects/cmpfrm Executable file
View File

@ -0,0 +1 @@
./compile frm $1

1
linux/projects/cmpini Executable file
View File

@ -0,0 +1 @@
./compile ini $1

1
linux/projects/cmpjpg Executable file
View File

@ -0,0 +1 @@
./compile jpg $1

1
linux/projects/cmpmen Executable file
View File

@ -0,0 +1 @@
./compile men $1

1
linux/projects/cmpmsk Executable file
View File

@ -0,0 +1 @@
./compile msk $1

1
linux/projects/cmpmsk2 Executable file
View File

@ -0,0 +1 @@
./compile msk2 $1

1
linux/projects/cmprpt Executable file
View File

@ -0,0 +1 @@
./compile rpt $1

22
linux/projects/compile Executable file
View File

@ -0,0 +1,22 @@
compiler=$1
dstext=$1
srcext=$dstext
if [ $dstext == msk2 ];
then
dstext=msk
fi
if [ $dstext == msk ];
then
srcext=uml
fi
for i in $2*.$srcext
do
n=`basename $i .$srcext`
of=../../exed/$n.$dstext
of1=../../exe/$n.$dstext
./$compiler $i $of
if [ ! -L $of1 ];
then
ln -s $of $of1
fi
done

View File

@ -4,6 +4,6 @@ OUTNAME=/tmp/msk.$$
NAME=/tmp/msk$$.c
cat ../../include/lffiles.h $1 >$TMPNAME
INC="-iprefix ../../ -iwithprefix include -iwithprefix ab -iwithprefix ba -iwithprefix ce -iwithprefix cg -iwithprefix cm -iwithprefix db -iwithprefix dl -iwithprefix ef -iwithprefix in -iwithprefix m770 -iwithprefix mg -iwithprefix mr -iwithprefix or -iwithprefix pr -iwithprefix sc -iwithprefix sv -iwithprefix ve -iwithprefix xvaga"
gcc -E $INC -o $OUTNAME $TMPNAME
gcc -E $INC -o $OUTNAME $TMPNAME 2>&1
grep -v ^# $OUTNAME | grep -v "^[ ]*$" >$2
rm $TMPNAME $OUTNAME

View File

@ -1,13 +1,2 @@
echo Compiling $1 into $2
TMPNAME=/tmp/msk$$.c
OUTNAME=/tmp/msk.$$
NAME=/tmp/msk$$.c
cat ../../include/lffiles.h $1 >$TMPNAME
INC="-iprefix ../../ -iwithprefix include -iwithprefix ab -iwithprefix ba -iwithprefix ce -iwithprefix cg -iwithprefix cm -iwithprefix db -iwithprefix dl -iwithprefix ef -iwithprefix in -iwithprefix m770 -iwithprefix mg -iwithprefix mr -iwithprefix or -iwithprefix pr -iwithprefix sc -iwithprefix sv -iwithprefix ve -iwithprefix xvaga"
gcc -E $INC -o $OUTNAME $TMPNAME
grep -v ^# $OUTNAME | grep -v "^[ ]*$" >$2
rm $TMPNAME $OUTNAME
pushd
cd ../../exe
ve0 -3 %2 -uADMIN
popd
echo Copying $1 to $2
cp $1 $2

2
linux/projects/jpg Executable file
View File

@ -0,0 +1,2 @@
echo Copying $1 to $2
cp $1 $2

2
linux/projects/men Executable file
View File

@ -0,0 +1,2 @@
echo Copying $1 to $2
cp $1 $2

View File

@ -4,6 +4,6 @@ OUTNAME=/tmp/msk.$$
NAME=/tmp/msk$$.c
cat ../../include/uml.h $1 >$TMPNAME
INC="-iprefix ../../ -iwithprefix include -iwithprefix ab -iwithprefix ba -iwithprefix ce -iwithprefix cg -iwithprefix cm -iwithprefix db -iwithprefix dl -iwithprefix ef -iwithprefix in -iwithprefix m770 -iwithprefix mg -iwithprefix mr -iwithprefix or -iwithprefix pr -iwithprefix sc -iwithprefix sv -iwithprefix ve -iwithprefix xvaga"
gcc -E $INC -o $OUTNAME $TMPNAME
gcc -E $INC -o $OUTNAME $TMPNAME 2>&1
grep -v ^# $OUTNAME | grep -v "^[ ]*$" >$2
rm $TMPNAME $OUTNAME

View File

@ -4,7 +4,7 @@ OUTNAME=/tmp/msk.$$
NAME=/tmp/msk$$.c
cat ../../include/uml.h $1 >$TMPNAME
INC="-iprefix ../../ -iwithprefix include -iwithprefix ab -iwithprefix ba -iwithprefix ce -iwithprefix cg -iwithprefix cm -iwithprefix db -iwithprefix dl -iwithprefix ef -iwithprefix in -iwithprefix m770 -iwithprefix mg -iwithprefix mr -iwithprefix or -iwithprefix pr -iwithprefix sc -iwithprefix sv -iwithprefix ve -iwithprefix xvaga"
gcc -E $INC -o $OUTNAME $TMPNAME
gcc -E $INC -o $OUTNAME $TMPNAME 2>&1
sed -e 's/!!/#/g' $OUTNAME | sed -e 's/;/\n/g' >$TMPNAME
gcc -E $INC -o $OUTNAME $TMPNAME
grep -v ^# $OUTNAME | grep -v "^[ ]*$" >$2

View File

@ -4,6 +4,6 @@ OUTNAME=/tmp/msk.$$
NAME=/tmp/msk$$.c
cat ../../include/lffiles.h $1 >$TMPNAME
INC="-iprefix ../../ -iwithprefix include -iwithprefix ab -iwithprefix ba -iwithprefix ce -iwithprefix cg -iwithprefix cm -iwithprefix db -iwithprefix dl -iwithprefix ef -iwithprefix in -iwithprefix m770 -iwithprefix mg -iwithprefix mr -iwithprefix or -iwithprefix pr -iwithprefix sc -iwithprefix sv -iwithprefix ve -iwithprefix xvaga"
gcc -E $INC -o $OUTNAME $TMPNAME
gcc -E $INC -o $OUTNAME $TMPNAME 2>&1
grep -v ^# $OUTNAME | grep -v "^[ ]*$" >$2
rm $TMPNAME $OUTNAME