Version moved to its own script for code reuse

This commit is contained in:
mmcwilliams 2020-05-22 14:54:38 -04:00
parent cf32fcc856
commit 84e07d8e60
2 changed files with 4 additions and 1 deletions

View File

@ -2,7 +2,7 @@
echo "Compiling GNAL v1" echo "Compiling GNAL v1"
VERSION=`openscad -v 2>&1 >/dev/null | awk '{print $3}'` VERSION=`bash ./scripts/version.sh`
CPU=`bash ./scripts/cpu.sh` CPU=`bash ./scripts/cpu.sh`
DIST=./dist/ DIST=./dist/
NOTES=./notes/v1.csv NOTES=./notes/v1.csv

3
scripts/version.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/bash
openscad -v 2>&1 >/dev/null | awk '{print $3}'