From c42889addef317026ea0dafaa8a1a7ccdac34714 Mon Sep 17 00:00:00 2001 From: Jakub Husak Date: Fri, 3 Feb 2023 13:05:02 +0100 Subject: [PATCH] added missing file --- various_flashers/makeflashwrite.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 various_flashers/makeflashwrite.sh diff --git a/various_flashers/makeflashwrite.sh b/various_flashers/makeflashwrite.sh new file mode 100755 index 0000000..464a9df --- /dev/null +++ b/various_flashers/makeflashwrite.sh @@ -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 " && + 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