aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xdoc/scripts/dist.sh19
-rw-r--r--src/utils/cpuid.cpp2
2 files changed, 14 insertions, 7 deletions
diff --git a/doc/scripts/dist.sh b/doc/scripts/dist.sh
index 9629446cf..8121bcd0e 100755
--- a/doc/scripts/dist.sh
+++ b/doc/scripts/dist.sh
@@ -3,11 +3,18 @@
# This is probably only useful if run on my machine, which is not
# exactly ideal
-SELECTOR=h:net.randombit.botan.1_8
+# Make that limitation explicit
+if [ $(hostname -s) != 'chihiro' ]; then
+ echo "This script probably won't work on this machine without fixes"
+ exit 1
+fi
+
+SELECTOR=h:net.randombit.botan
KEY_ID=EFBADFBC
-MTN_DB=/storage/mtn/botan.mtn
-WEB_DIR=~/projects/www
+MTN_DB=$HOME/var/mtn/botan.mtn
+WEB_DIR=/var/www/randombit.net/
DIST_DIR=~/Botan-dist
+VERSION_DIR=v1.9
# You shouldn't have to change anything after this
mkdir -p $DIST_DIR
@@ -26,7 +33,7 @@ rm -f .mtn-ignore
# Build docs
cd doc
-for doc in api tutorial building
+for doc in api tutorial building python
do
latex $doc.tex
latex $doc.tex
@@ -60,5 +67,5 @@ read -a PASSWORD -p "Enter PGP password (or ^C to skip signatures): "
echo $PASSWORD | gpg --batch --armor -b --passphrase-fd 0 -u $KEY_ID Botan-$VERSION.tgz
echo $PASSWORD | gpg --batch --armor -b --passphrase-fd 0 -u $KEY_ID Botan-$VERSION.tbz
-mv Botan-$VERSION.tgz* $WEB_DIR/files/botan/v1.8
-mv Botan-$VERSION.tbz* $WEB_DIR/files/botan/v1.8
+mv Botan-$VERSION.tgz* $WEB_DIR/files/botan/${VERSION_DIR}
+mv Botan-$VERSION.tbz* $WEB_DIR/files/botan/${VERSION_DIR}
diff --git a/src/utils/cpuid.cpp b/src/utils/cpuid.cpp
index b92afbde3..f79e3a912 100644
--- a/src/utils/cpuid.cpp
+++ b/src/utils/cpuid.cpp
@@ -15,7 +15,7 @@
#if defined(BOTAN_BUILD_COMPILER_IS_MSVC)
#include <intrin.h>
- #define CALL_CPUID(type, out) do { __cpuid((int*)out, type) } while(0)
+ #define CALL_CPUID(type, out) do { __cpuid((int*)out, type); } while(0)
#elif defined(BOTAN_BUILD_COMPILER_IS_ICC)