/[cvs]/wurmi/compile
ViewVC logotype

Contents of /wurmi/compile

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations)
Mon Sep 10 13:00:55 2007 UTC (11 years, 1 month ago) by riso
Branch: MAIN
CVS Tags: HEAD
Running now  :-)
:

1 #!/bin/bash
2 IDIR="/home/riso/public_html/submitted"
3 for i in $IDIR/*.name; do
4 BASE=`basename $i .name`
5 echo "Compiling $BASE..."
6 cp $IDIR/$BASE.name players
7 if [ -f $IDIR/$BASE.pas ]; then
8 cp $IDIR/$BASE.pas players
9 cd players
10 fpc -o$BASE.plr $BASE.pas
11 cd ..
12 fi
13 if [ -f $IDIR/$BASE.c ]; then
14 cp $IDIR/$BASE.c players
15 cd players
16 gcc -Wall -W -o $BASE.plr $BASE.c
17 cd ..
18 fi
19 if [ -f $IDIR/$BASE.cpp ]; then
20 cp $IDIR/$BASE.cpp players
21 cd players
22 g++ -Wall -W -o $BASE.plr $BASE.c
23 cd ..
24 fi
25 done
26

CVS Admin">CVS Admin
ViewVC Help
Powered by ViewVC 1.1.26