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 | 92c1b361236527dc6243bb08c0cb7743ef33e7df (patch) | |
| tree | 33b59dbdda6c3d2433e7e9127270d92631f7f253 /nist/make-package.sh | |
| parent | 596b860e0702632a123ad0bd505942634c6836b1 (diff) | |
| download | lilliput-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/make-package.sh')
| -rwxr-xr-x | nist/make-package.sh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/nist/make-package.sh b/nist/make-package.sh index bdf3a27..78384b8 100755 --- a/nist/make-package.sh +++ b/nist/make-package.sh @@ -7,7 +7,7 @@ shopt -s extglob # # crypto_aead # │ -# └── lilliputae${mode}${keylen}v1 +# └── lilliputae${mode}${keylen}v${VERSION} # │ # ├── add_${someimplementation} # │ ├── api.h @@ -27,6 +27,9 @@ NIST_DIR=$(dirname $0) ROOT=${NIST_DIR}/.. TMP_DIR=$(mktemp -d) +VERSION=$(${NIST_DIR}/version.sh) + + cleanup () { rm -r ${TMP_DIR} @@ -58,7 +61,7 @@ add-variant () { mode=$1 key_length=$2 - variant=lilliputae${mode}${key_length}v1 + variant=lilliputae${mode}${key_length}v${VERSION} dest=${TMP_DIR}/crypto_aead/${variant} mkdir -p ${dest} @@ -85,7 +88,7 @@ test-variant () { mode=$1 key_length=$2 - variant=lilliputae${mode}${key_length}v1 + variant=lilliputae${mode}${key_length}v${VERSION} dest=${TMP_DIR}/crypto_aead/${variant} src=${dest}/ref |
