Skip to content

Instantly share code, notes, and snippets.

@mensinda
Last active June 14, 2017 09:13
Show Gist options
  • Save mensinda/a7102689bd9b0b493d648eb4536324b4 to your computer and use it in GitHub Desktop.
Save mensinda/a7102689bd9b0b493d648eb4536324b4 to your computer and use it in GitHub Desktop.
#!/bin/bash
cd "$(dirname $0)"
WS_INCLUDE_DIR="$PWD/install/include/wireshark"
WS_LIB_DIR="$PWD/install/bin"
[ ! -d "$WS_INCLUDE_DIR" ] && mkdir -p "$WS_INCLUDE_DIR"
cd WS_ROOT/wireshark
find . -name "*.h" ! -path "*build*" ! -name "cfile.h" -exec cp --parents {} "${WS_INCLUDE_DIR}" \;
cd ../wsbuild64/run/Release
find . -name "*.dll" -exec cp --parents {} "${WS_LIB_DIR}" \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment