diff options
| author | Kévin Le Gouguec <kevin.legouguec@airbus.com> | 2019-07-04 10:34:02 +0200 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@airbus.com> | 2019-07-04 10:42:25 +0200 |
| commit | 14488f9a94e1a544cd3678bdb52f9676003980fb (patch) | |
| tree | 33b59dbdda6c3d2433e7e9127270d92631f7f253 /nist/package-python.sh | |
| parent | b5c0141c63604241b43c54a559d74942ff7ca8a0 (diff) | |
| download | lilliput-ae-implem-14488f9a94e1a544cd3678bdb52f9676003980fb.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-x | nist/package-python.sh | 4 |
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} |
