#! /usr/bin/env bash # file : build/meta/vc9proj # copyright : Copyright (c) 2009-2012 Code Synthesis Tools CC # license : GNU GPL v2; see accompanying LICENSE file # Process VC++ 9 project file templates. # # Options: # # -o # # Arguments: # # # trap 'exit 1' ERR function error () { echo "$*" 1>&2 } output= while [ $# -gt 0 ]; do case $1 in -o) output=$2 shift 2 ;; *) break ;; esac done input=$1 if [ "$input" = "" ]; then error "no input file" exit 1 fi if [ "$output" = "" ]; then error "no output file" exit 1 fi m4=m4 u2d=todos # Assume this script is never found via PATH. # meta=`dirname $0` build="$meta/.." install=$build/install/install # Determine available configurations. # conf=`sed -n -e \ '/^[ ]*$output $u2d $output chmod 644 $output