added missing file

This commit is contained in:
Jakub Husak
2023-02-03 13:05:02 +01:00
parent 3d1f5a27a7
commit c42889adde
+18
View File
@@ -0,0 +1,18 @@
#oldpwd=$(pwd)
[ "$1" ] && [ -f "$1/macroflashname.asx" ] && cd "$1"
! [ -f macroflashname.asx ] &&
echo "Please cd into any flasher catalog and run ../$0" &&
echo "or run $0 <progcatalog>" &&
exit 1
noprocess=$2
outfile=$(pwd)
catalog=$(dirname "$outfile")
outfile=$(basename "$outfile")flasher
cd "$dirname"
mads ../../lib/flashwrite.asx -m:macroflashname.asx -o:"$outfile".xex || exit
echo Created file "$outfile".xex
#cd "$oldpwd"
! [ "$noprocess" == noprocess ] && [ -f ../postprocess.sh ] && [ -x ../postprocess.sh ] && ../postprocess.sh "$outfile".xex