From 4bdcd4aea5661dd27ee3b00e773fad510f869ddb Mon Sep 17 00:00:00 2001 From: Andrew Stitcher Date: Wed, 17 Mar 2010 19:43:57 +0000 Subject: Get qpid version from top-level QPID_VERSION.txt file git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@924447 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/bld-winsdk.ps1 | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'qpid/cpp') diff --git a/qpid/cpp/bld-winsdk.ps1 b/qpid/cpp/bld-winsdk.ps1 index 7660927819..d83b1be55f 100644 --- a/qpid/cpp/bld-winsdk.ps1 +++ b/qpid/cpp/bld-winsdk.ps1 @@ -20,11 +20,24 @@ # This script requires cmake, and 7z to be already on the path devenv should be on the path as # a result of installing Visual Studio +# Filter to extract the include file from c style #include lines +# TODO: Not used yet +filter extractIncludes { + Get-Content $_ | + foreach { + if ($_ -match '^\s*#include\s[<"]*(.*)[>"]\s*') { + $matches[1] + } + } | + sort -unique +} + foreach ($arg in $args) {"Arg: $arg"} -$qpid_cpp_src='..\qpid\cpp' +$qpid_src='..\qpid' +$qpid_cpp_src="$qpid_src\cpp" $install_dir='install_dir' -$ver='0.7' +$ver=Get-Content "$qpid_src/QPID_VERSION.txt" $zipfile="qpid-cpp-$ver.zip" # Clean out install directory -- cgit v1.2.1