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/version.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/version.sh')
| -rwxr-xr-x | nist/version.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/nist/version.sh b/nist/version.sh new file mode 100755 index 0000000..72990ab --- /dev/null +++ b/nist/version.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +set -eu + +NIST_DIR=$(dirname $0) +ROOT=${NIST_DIR}/.. + +version=$(cat ${ROOT}/VERSION) +echo ${version//[^0-9]/} |
