Files
Picus/picus-compile.sh
2023-08-16 16:56:02 -07:00

12 lines
220 B
Bash
Executable File

#!/bin/bash
# usage:
# picus-compile.sh <path-to-circom-file>
fp=$1
fd="$(dirname "${fp}")"
fn="$(basename "${fp}")"
bn="${fn%.*}"
# echo "# preparing: ${fp}"
circom -o ${fd} ${fp} --r1cs --sym --O0 > /dev/null 2>&1