File: makeopts

package info (click to toggle)
volpack 1.0b3-10
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 4,864 kB
  • sloc: ansic: 12,208; sh: 9,078; makefile: 90; csh: 76
file content (30 lines) | stat: -rwxr-xr-x 562 bytes parent folder | download | duplicates (6)
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
#
# makeopts
#
# Create a C source file containing an initialized string with the
# compiler options used to compile VolPack.
#
# Copyright (c) 2007 Andreas Tille
# Author:
#     Andreas Tille <tille@debian.org>
# License: BSD

# Usage: makeopts output_file [compiler_options ...]

progname=`basename $0`
if [ $# -lt 2 ] ; then
	echo "Usage: $progname output_file [compiler_options ...]"
	exit 1
fi

outfile=$1
shift

cat > $outfile <<EOT
/*
 * DO NOT EDIT THIS FILE! It was created automatically by $progname.
 */

char *vpCompilerOptions = "$@";
EOT