Skip to content

Commit

Permalink
WIP: fix generate-a3p-submissions.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris-Hibbert committed Apr 18, 2024
1 parent 78a39ce commit e1e0b2f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion a3p-integration/scripts/generate-a3p-submissions.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
#!/bin/bash
set -ueo pipefail

SCRIPT_DIR=$( cd ${0%/*} && pwd -P )
## cd prints its target, so without the redirect, we get two copies
#SCRIPT_DIR=$( cd ${0%/*} > /dev/null && pwd -P )
SCRIPT_DIR=$( cd ${0%/*} > /dev/null && pwd -P )
echo " " SCRIPT_DIR is $SCRIPT_DIR

IFS=$'\n'

for proposal in ./proposals/?:*; do
cd $proposal
while read -r line; do
IFS=' ' parts=( $line )
echo " about to GENERATE " $proposal
$SCRIPT_DIR/generate-a3p-submission.sh $proposal ${parts[@]}
echo " finished GENERATING" $proposal
done < <(jq -r < package.json '.agoricProposal["sdk-generate"][]')
cd -
done

0 comments on commit e1e0b2f

Please sign in to comment.