Use latest makefile for building lastest library. Whitespace cleanup
parent
385a3914d6
commit
c52ad8905f
|
|
@ -181,11 +181,13 @@ fi
|
||||||
|
|
||||||
"$MAKE" distclean &>/dev/null
|
"$MAKE" distclean &>/dev/null
|
||||||
|
|
||||||
git checkout "$OLD_VERSION_TAG" -f &>/dev/null
|
|
||||||
|
|
||||||
rm -f GNUmakefile-symbols
|
rm -f GNUmakefile-symbols
|
||||||
|
|
||||||
|
git checkout master -f &>/dev/null
|
||||||
cp GNUmakefile GNUmakefile-symbols
|
cp GNUmakefile GNUmakefile-symbols
|
||||||
|
|
||||||
|
git checkout "$OLD_VERSION_TAG" -f &>/dev/null
|
||||||
|
|
||||||
if [[ "$IS_DARWIN" -ne "0" ]]; then
|
if [[ "$IS_DARWIN" -ne "0" ]]; then
|
||||||
"$SED" "$SED_OPTS" -e 's|libcryptopp.a $(TESTOBJS)|libcryptopp.dylib $(TESTOBJS)|g' GNUmakefile-symbols
|
"$SED" "$SED_OPTS" -e 's|libcryptopp.a $(TESTOBJS)|libcryptopp.dylib $(TESTOBJS)|g' GNUmakefile-symbols
|
||||||
"$SED" "$SED_OPTS" -e 's|$(TESTOBJS) ./libcryptopp.a |$(TESTOBJS) ./libcryptopp.dylib |g' GNUmakefile-symbols
|
"$SED" "$SED_OPTS" -e 's|$(TESTOBJS) ./libcryptopp.a |$(TESTOBJS) ./libcryptopp.dylib |g' GNUmakefile-symbols
|
||||||
|
|
@ -205,11 +207,11 @@ echo "******************************************************"
|
||||||
|
|
||||||
if [[ -f "cryptest.exe" ]]; then
|
if [[ -f "cryptest.exe" ]]; then
|
||||||
if [[ "$IS_DARWIN" -ne "0" ]]; then
|
if [[ "$IS_DARWIN" -ne "0" ]]; then
|
||||||
DYLD_LIBRARY_PATH=".:$DYLD_LIBRARY_PATH" ./cryptest.exe v 2>&1 | c++filt
|
DYLD_LIBRARY_PATH="$PWD:$DYLD_LIBRARY_PATH" "$PWD/cryptest.exe" v 2>&1 | c++filt
|
||||||
DYLD_LIBRARY_PATH=".:$DYLD_LIBRARY_PATH" ./cryptest.exe tv all 2>&1 | c++filt
|
DYLD_LIBRARY_PATH="$PWD:$DYLD_LIBRARY_PATH" "$PWD/cryptest.exe" tv all 2>&1 | c++filt
|
||||||
else
|
else
|
||||||
LD_LIBRARY_PATH=".:$LD_LIBRARY_PATH" ./cryptest.exe v 2>&1 | c++filt
|
LD_LIBRARY_PATH="$PWD:$LD_LIBRARY_PATH" "$PWD/cryptest.exe" v 2>&1 | c++filt
|
||||||
LD_LIBRARY_PATH=".:$LD_LIBRARY_PATH" ./cryptest.exe tv all 2>&1 | c++filt
|
LD_LIBRARY_PATH="$PWD:$LD_LIBRARY_PATH" "$PWD/cryptest.exe" tv all 2>&1 | c++filt
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "Failed to make cryptest.exe"
|
echo "Failed to make cryptest.exe"
|
||||||
|
|
@ -224,7 +226,7 @@ rm -f *.o *.so *.dylib
|
||||||
git checkout "$NEW_VERSION_TAG" -f &>/dev/null
|
git checkout "$NEW_VERSION_TAG" -f &>/dev/null
|
||||||
|
|
||||||
echo "******************************************************"
|
echo "******************************************************"
|
||||||
echo "Building dynamic library for $NEW_VERSION_TAG and linking into $OLD_VERSION_TAG cryptest.exe"
|
echo "Building dynamic library for $NEW_VERSION_TAG"
|
||||||
echo "******************************************************"
|
echo "******************************************************"
|
||||||
|
|
||||||
"$MAKE" "${MAKEARGS[@]}" -f GNUmakefile-symbols dynamic
|
"$MAKE" "${MAKEARGS[@]}" -f GNUmakefile-symbols dynamic
|
||||||
|
|
@ -235,14 +237,14 @@ echo "******************************************************"
|
||||||
|
|
||||||
if [[ -f "cryptest.exe" ]]; then
|
if [[ -f "cryptest.exe" ]]; then
|
||||||
if [[ "$IS_DARWIN" -ne "0" ]]; then
|
if [[ "$IS_DARWIN" -ne "0" ]]; then
|
||||||
DYLD_LIBRARY_PATH=".:$DYLD_LIBRARY_PATH" ./cryptest.exe v 2>&1 | c++filt
|
DYLD_LIBRARY_PATH="$PWD:$DYLD_LIBRARY_PATH" "$PWD/cryptest.exe" v 2>&1 | c++filt
|
||||||
DYLD_LIBRARY_PATH=".:$DYLD_LIBRARY_PATH" ./cryptest.exe tv all 2>&1 | c++filt
|
DYLD_LIBRARY_PATH="$PWD:$DYLD_LIBRARY_PATH" "$PWD/cryptest.exe" tv all 2>&1 | c++filt
|
||||||
else
|
else
|
||||||
LD_LIBRARY_PATH=".:$LD_LIBRARY_PATH" ./cryptest.exe v 2>&1 | c++filt
|
LD_LIBRARY_PATH="$PWD:$LD_LIBRARY_PATH" "$PWD/cryptest.exe" v 2>&1 | c++filt
|
||||||
LD_LIBRARY_PATH=".:$LD_LIBRARY_PATH" ./cryptest.exe tv all 2>&1 | c++filt
|
LD_LIBRARY_PATH="$PWD:$LD_LIBRARY_PATH" "$PWD/cryptest.exe" tv all 2>&1 | c++filt
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "Failed to make cryptest.exe"
|
echo "Failed to make cryptest.exe"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
git checkout master -f
|
git checkout master -f &>/dev/null
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue