diff options
Diffstat (limited to 'build/meta/vctest')
-rwxr-xr-x | build/meta/vctest | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/build/meta/vctest b/build/meta/vctest index ad4af14..d20af27 100755 --- a/build/meta/vctest +++ b/build/meta/vctest @@ -12,11 +12,11 @@ # -b <base-dir> # -r <root-dir> # -o <output-file> -# -s <vc-solution> +# -t <template-file> # # Arguments: # -# <template-file> +# <solution-files> # trap 'exit 1' ERR @@ -29,6 +29,7 @@ base= root= output= sln= +input= while [ $# -gt 0 ]; do case $1 in @@ -44,20 +45,20 @@ while [ $# -gt 0 ]; do output=$2 shift 2 ;; - -s) - sln=$2 + -t) + input=$2 shift 2 ;; *) - break + sln="$sln $1" + shift ;; esac done -input=$1 if [ "$input" = "" ]; then - error "no input file" + error "no template file" exit 1 fi @@ -81,6 +82,7 @@ if [ "$sln" = "" ]; then exit 1 fi + m4=m4 u2d=unix2dos @@ -104,7 +106,8 @@ fi # Determine possible configurations. # -sln_conf=`cat $sln | dos2unix | sed -n -e \ +for f in $sln; do + sln_conf=`cat $f | dos2unix | sed -n -e \ '/^[ ]*GlobalSection(SolutionConfigurationPlatforms).*$/{\ : loop;\ n;\ @@ -112,6 +115,8 @@ n;\ s/^[ ]*\([^=]*\) = \([^=]*\)$/\1/p;\ b loop};\ d' -` + break +done confs= plats= |