summaryrefslogtreecommitdiffstats
path: root/qemu/scripts/extract-vsssdk-headers
diff options
context:
space:
mode:
authorRajithaY <rajithax.yerrumsetty@intel.com>2017-04-25 03:31:15 -0700
committerRajitha Yerrumchetty <rajithax.yerrumsetty@intel.com>2017-05-22 06:48:08 +0000
commitbb756eebdac6fd24e8919e2c43f7d2c8c4091f59 (patch)
treeca11e03542edf2d8f631efeca5e1626d211107e3 /qemu/scripts/extract-vsssdk-headers
parenta14b48d18a9ed03ec191cf16b162206998a895ce (diff)
Adding qemu as a submodule of KVMFORNFV
This Patch includes the changes to add qemu as a submodule to kvmfornfv repo and make use of the updated latest qemu for the execution of all testcase Change-Id: I1280af507a857675c7f81d30c95255635667bdd7 Signed-off-by:RajithaY<rajithax.yerrumsetty@intel.com>
Diffstat (limited to 'qemu/scripts/extract-vsssdk-headers')
-rwxr-xr-xqemu/scripts/extract-vsssdk-headers35
1 files changed, 0 insertions, 35 deletions
diff --git a/qemu/scripts/extract-vsssdk-headers b/qemu/scripts/extract-vsssdk-headers
deleted file mode 100755
index 9e38510f0..000000000
--- a/qemu/scripts/extract-vsssdk-headers
+++ /dev/null
@@ -1,35 +0,0 @@
-#! /bin/bash
-
-# extract-vsssdk-headers
-# Author: Paolo Bonzini <pbonzini@redhat.com>
-
-set -e
-if test $# != 1 || ! test -f "$1"; then
- echo 'Usage: extract-vsssdk-headers /path/to/setup.exe' >&2
- exit 1
-fi
-
-if ! command -v msiextract > /dev/null; then
- echo 'msiextract not found. Please install msitools.' >&2
- exit 1
-fi
-
-if test -e inc; then
- echo '"inc" already exists.' >&2
- exit 1
-fi
-
-# Extract .MSI file in the .exe, looking for the OLE compound
-# document signature. Extra data at the end does not matter.
-export LC_ALL=C
-MAGIC=$'\xd0\xcf\x11\xe0\xa1\xb1\x1a\xe1'
-offset=$(grep -abom1 "$MAGIC" "$1" | sed -n 's/:/\n/; P')
-tmpdir=$(mktemp -d)
-trap 'rm -fr -- "$tmpdir" vsssdk.msi' EXIT HUP INT QUIT ALRM TERM
-tail -c +$(($offset+1)) -- "$1" > vsssdk.msi
-
-# Now extract the files.
-msiextract -C $tmpdir vsssdk.msi
-mv "$tmpdir/Program Files/Microsoft/VSSSDK72/inc" inc
-echo 'Extracted SDK headers into "inc" directory.'
-exit 0