Skip to content

Commit

Permalink
Updated extract-all script
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptojedi committed Aug 7, 2024
1 parent 7cadd80 commit 57f2545
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion scripts/extract-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,21 @@

SCRIPTDIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
LIBJADE_ROOT="$SCRIPTDIR/.."
LIBJADE_SRC="$LIBJADE_ROOT/src"

rm -r "$LIBJADE_SRC"

for SUBMODULE in "$LIBJADE_ROOT"/submodules/formosa-*;do
EXTRACT="$SUBMODULE/extract-libjade.sh"
for IMPLEMENTATION in $($EXTRACT --list-implementations); do
$EXTRACT --gen-implementation "$IMPLEMENTATION" "$LIBJADE_ROOT/src/$IMPLEMENTATION"

IMPLPATH="$LIBJADE_SRC/$IMPLEMENTATION"

if [ -e "$IMPLPATH" ];then
echo "Error: $IMPLPATH already exists"
else
mkdir -p "$IMPLPATH"
$EXTRACT --gen-implementation "$IMPLEMENTATION" "$IMPLPATH"
fi
done
done

0 comments on commit 57f2545

Please sign in to comment.