summaryrefslogtreecommitdiff
path: root/qpid/cpp
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2010-03-17 19:43:57 +0000
committerAndrew Stitcher <astitcher@apache.org>2010-03-17 19:43:57 +0000
commit4bdcd4aea5661dd27ee3b00e773fad510f869ddb (patch)
treed5001e702e7465bae6b83d1fa6527638e61eaba3 /qpid/cpp
parentae51b99adba129d429dbb3faff0d29e7acc1453e (diff)
downloadqpid-python-4bdcd4aea5661dd27ee3b00e773fad510f869ddb.tar.gz
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
Diffstat (limited to 'qpid/cpp')
-rw-r--r--qpid/cpp/bld-winsdk.ps117
1 files changed, 15 insertions, 2 deletions
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