summaryrefslogtreecommitdiff
path: root/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
commit1ce0d85777a332805775727874a095a6bf1ae617 (patch)
treecc731e88e7287ea6d390275a1c38a1cfb87b50d1 /cpp
parentf6b9deba884ee5f331fff4de48830336a39c0008 (diff)
downloadqpid-python-1ce0d85777a332805775727874a095a6bf1ae617.tar.gz
Get qpid version from top-level QPID_VERSION.txt file
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@924447 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
-rw-r--r--cpp/bld-winsdk.ps117
1 files changed, 15 insertions, 2 deletions
diff --git a/cpp/bld-winsdk.ps1 b/cpp/bld-winsdk.ps1
index 7660927819..d83b1be55f 100644
--- a/cpp/bld-winsdk.ps1
+++ b/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