cavis/contrib/codegen-tools/codegen/generate.sh

11 lines
505 B
Bash
Raw Normal View History

2021-03-12 13:31:14 +01:00
#!/bin/bash
if test "$#" -eq 0; then
echo "No namespaces were specified. One or more namespaces must be provided as an argument"
echo "Usage example 1 (single namespace): ./generate.sh math"
echo "Usage example 2 (multiple namespaces): ./generate.sh math,random"
echo "Usage example 2 (all namespaces): ./generate.sh all"
else
mvn clean package -DskipTests
2021-03-13 03:00:11 +01:00
java -cp target/codegen-1.0.0-SNAPSHOT-shaded.jar org.nd4j.codegen.cli.CLI -dir ../../../ -namespaces "$@"
2021-03-12 13:31:14 +01:00
fi