use revision.txt for board name

This commit is contained in:
David Holdeman 2023-07-12 22:50:46 -05:00
parent 20721ca0c8
commit ebd22e2187
No known key found for this signature in database
GPG Key ID: DBEE6FCFCC9DD9A6
1 changed files with 3 additions and 6 deletions

View File

@ -1,14 +1,11 @@
#!/bin/env bash
if [ -z "$1" ]; then
echo "Pass file name without extension"
exit 1
fi
# Get path of script so we can call python scripts
DIR=$(dirname $0)
IN="$1"
. revision.txt
IN="$BOARD_PREFIX$BOARD_SUFFIX"
# Copy to backup so we can modify before exporting
cp "$IN.kicad_pcb" "$IN.kicad_pcb.bak"