#!/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
