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
|