summaryrefslogtreecommitdiff
path: root/nist/package-python.sh
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@airbus.com>2019-07-04 10:34:02 +0200
committerKévin Le Gouguec <kevin.legouguec@airbus.com>2019-07-04 10:42:25 +0200
commit92c1b361236527dc6243bb08c0cb7743ef33e7df (patch)
tree33b59dbdda6c3d2433e7e9127270d92631f7f253 /nist/package-python.sh
parent596b860e0702632a123ad0bd505942634c6836b1 (diff)
downloadlilliput-ae-implem-92c1b361236527dc6243bb08c0cb7743ef33e7df.tar.xz
Ajout d'un fichier de version
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.
Diffstat (limited to 'nist/package-python.sh')
-rwxr-xr-xnist/package-python.sh4
1 files changed, 3 insertions, 1 deletions
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}