-
Notifications
You must be signed in to change notification settings - Fork 471
/
Copy path_bm.sh
executable file
·27 lines (22 loc) · 977 Bytes
/
_bm.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
# Create and upload a Zadig release
# !!!THIS SCRIPT IS FOR INTERNAL DEVELOPER USE ONLY!!!
zadig_version=2.0.0.150
target_dir=/e/dailies/libwdi
type -P git &>/dev/null || { echo "Git not found. Aborting." >&2; exit 1; }
type -P 7zr &>/dev/null || { echo "7-zip (7zr) executable not found. Aborting." >&2; exit 1; }
git clean -fdx
(glibtoolize --version) < /dev/null > /dev/null 2>&1 && LIBTOOLIZE=glibtoolize || LIBTOOLIZE=libtoolize
$LIBTOOLIZE --copy --force || exit 1
aclocal || exit 1
autoheader || exit 1
autoconf || exit 1
automake -a -c || exit 1
./configure --disable-shared --enable-toggable-debug --enable-examples-build --disable-debug --with-ddkdir="E:/WinDDK/7600.16385.0" --with-libusb0="D:/libusb-win32" --with-libusbk="D:/libusbK/bin"
cd libwdi
make -j2
cd ../examples
make zadig.exe
7zr a $target_dir/zadig_v$zadig_version.7z zadig.exe
cd ..
scp $target_dir/zadig_v$zadig_version.7z pbatard,[email protected]:/home/pfs/project/l/li/libwdi/zadig