#!/bin/sh # Dev convenience: run the legacy ipecmd entry point against the dev tree. # The mplabx Zig binary builds its own java invocation and does not use this. # # JRE_HOME optional; overrides the java binary (defaults to `java` on PATH) # JAVA_OPTS optional; extra JVM arguments set -e root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) CP="$root/build/engine.jar:$root/build/classes:$root/resources" for j in $(find "$root/lib" -name '*.jar'); do CP="$CP:$j" done exec "${JRE_HOME:+$JRE_HOME/bin/}java" ${JAVA_OPTS:-} \ -Djava.awt.headless=true \ -cp "$CP" \ com.microchip.mplab.ipecmd.IPECMD "$@"