From 92c1b361236527dc6243bb08c0cb7743ef33e7df Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Thu, 4 Jul 2019 10:34:02 +0200 Subject: Ajout d'un fichier de version MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit L'idée étant que tous les scripts qui génèrent des dossiers au format crypto_aead consultent ce fichier au lieu de coder la version en dur. Un tag git pourrait probablement être utilisé au lieu d'un fichier. À réfléchir. --- nist/package-python.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'nist/package-python.sh') diff --git a/nist/package-python.sh b/nist/package-python.sh index 8d64e9f..31192c7 100755 --- a/nist/package-python.sh +++ b/nist/package-python.sh @@ -5,6 +5,8 @@ set -eu DEST_DIR=$1 NIST_DIR=$(dirname $0) ROOT=${NIST_DIR}/.. + +VERSION=$(${NIST_DIR}/version.sh) ADD_PYTHON=${ROOT}/src/add_python PYTHON_RESOURCES=${ROOT}/test/python/ @@ -16,7 +18,7 @@ add-variant () local -A names=([1]=lilliputaei [2]=lilliputaeii) - local variant_dir=${DEST_DIR}/crypto_aead/${names[${mode}]}${keylen}v1 + local variant_dir=${DEST_DIR}/crypto_aead/${names[${mode}]}${keylen}v${VERSION} cp -r ${ADD_PYTHON} ${variant_dir} -- cgit v1.2.3