repo.or.cz
/
and.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Removing uneeded file.
[and.git]
/
PC^2
/
pc2admin
/
samps
/
compilegcc
blob
e27954cb6ec19342346d1013ab633eaf69ff64ed
1
#!/bin/csh
2
3
set
e
=
4
set
mainfile
=
$1
5
set
basename
=
`echo
$mainfile
| sed 's/\.[^\.]*$//'`
6
set
ext
=
`echo
$mainfile
| awk -F. '{print
$NF
}'`
7
8
if
(
"x
$ext
"
==
"xcpp"
)
then
9
$e
g
++
-lm -o
$basename $mainfile
10
else
11
$e
gcc
-lm -o
$basename $mainfile
12
endif