oxedyne/fe2o3/fe2o3_crypto/src/build_src/build_all
735 bytes, 1 run, executable
created by r1870400018:157, which is this file's identity for as long as the history lasts, whatever it is later renamed to
download · who wrote it · its history
| 1 | #!/bin/bash |
| 2 | rm -f lib*saber.a |
| 3 | schemes="firesaber saber lightsaber" |
| 4 | for scheme in $schemes |
| 5 | do |
| 6 | case "$scheme" in |
| 7 | "firesaber") |
| 8 | echo $scheme |
| 9 | sed 's/^#STATIC=libfiresaber.a/STATIC=libfiresaber.a/' build_src > build |
| 10 | sed 's/^\/\/#define SABER_L 4/#define SABER_L 4/' SABER_params_src.h > SABER_params.h |
| 11 | ./build |
| 12 | ;; |
| 13 | "saber") |
| 14 | echo $scheme |
| 15 | sed 's/^#STATIC=libsaber.a/STATIC=libsaber.a/' build_src > build |
| 16 | sed 's/^\/\/#define SABER_L 3/#define SABER_L 3/' SABER_params_src.h > SABER_params.h |
| 17 | ./build |
| 18 | ;; |
| 19 | "lightsaber") |
| 20 | echo $scheme |
| 21 | sed 's/^#STATIC=liblightsaber.a/STATIC=liblightsaber.a/' build_src > build |
| 22 | sed 's/^\/\/#define SABER_L 2/#define SABER_L 2/' SABER_params_src.h > SABER_params.h |
| 23 | ./build |
| 24 | ;; |
| 25 | esac |
| 26 | done |