Revision 8c746d7e294d6948c2f361a8f2fa376a63a2db30 authored by Michael Baentsch on 09 June 2023, 05:05:21 UTC, committed by GitHub on 09 June 2023, 05:05:21 UTC
1 parent 5e73d05
revertmain.sh
#!/bin/bash
# This script reverts to a possibly set "main" code generator script
if [ -f oqs-template/generate.yml-main ]; then
rm -rf liboqs && git clone --depth 1 --branch main https://github.com/open-quantum-safe/liboqs.git
mv oqs-template/generate.yml-main oqs-template/generate.yml
LIBOQS_SRC_DIR=`pwd`/liboqs python3 oqs-template/generate.py
if [ $? -ne 0 ]; then
echo "Code generation failure for main branch. Exiting."
exit -1
fi
# remove liboqs.a to ensure rebuild against newly generated code
rm .local/lib/liboqs.a
git status
fi

Computing file changes ...