[go: up one dir, main page]

File: compile.sh

package info (click to toggle)
libdate-calc-perl 4.2-2
  • links: PTS
  • area: main
  • in suites: potato
  • size: 584 kB
  • ctags: 171
  • sloc: perl: 3,382; ansic: 1,972; makefile: 56; sh: 54
file content (30 lines) | stat: -rwxr-xr-x 995 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh

###############################################################################
##                                                                           ##
##    Copyright (c) 1998 by Steffen Beyer.                                   ##
##    All rights reserved.                                                   ##
##                                                                           ##
##    This program is free software; you can redistribute it                 ##
##    and/or modify it under the same terms as Perl.                         ##
##                                                                           ##
###############################################################################

self=`basename $0`

if [ $# = 0 ]
then
    echo "Usage:  $self  <main>[.c]  [ <other.c> ]*"
    exit 0
fi

main=`basename $1 .c`

if [ -f "$main.c" ]
then
    shift
    gcc -ansi -O2 -o $main $main.c "$@"
else
    echo "$self: file '$main.c' does not exist!"
fi