--- /dev/null
+#!/bin/bash
+java com.ReasoningTechnology."Ariadne".Build
A precise loop that doesn’t compromise readability or efficiency.
An elegant state pattern that aligns with the real-world model.
The beauty of RT code format guiding clarity and consistency!
+
+
+Callisto
--- /dev/null
+#!/bin/bash
+java Example_*
+++ /dev/null
-#!/bin/bash
-java Example_CountingNumber_0
+++ /dev/null
-#!/bin/bash
-java Example_IndexTree_Diagonal_SRM
+++ /dev/null
-#!/bin/bash
-java Example_SRMI_Array
+++ /dev/null
-#!/bin/bash
-java Example_SRM_List
--- /dev/null
+#!/bin/env bash
+
+for file in Example_*.class; do
+ echo "file: " $file
+ done
#!/bin/env bash
script_afp=$(realpath "${BASH_SOURCE[0]}")
-# input guards
-
- env_must_be="developer/toolđź–‰/env"
- if [ "$ENV" != "$env_must_be" ]; then
- echo "$(script_fp):: error: must be run in the $env_must_be environment"
- exit 1
- fi
-
- cd "$REPO_HOME"/developer
+cd "$REPO_HOME"/developer || exit 1
+source toolđź–‰/env_script
# list of classes that have main calls and get bash wrappers
echo Build
# directory if you have authored scripts for release, add a `bashđź–‰`
# directory instead of putting them in `bash`.
-# input guards
- env_must_be="developer/toolđź–‰/env"
- if [ "$ENV" != "$env_must_be" ]; then
- echo "$(script_fp):: error: must be run in the $env_must_be environment"
- exit 1
- fi
+cd "$REPO_HOME"/developer || exit 1
+source toolđź–‰/env_script
set -x
# remove main build files
- cd "$REPO_HOME"/developer
-
# rm_na currently does not handle links correctly
rm -r scratchpad/*
-
rm_na jvm/*
rm_na bash/*
# remove example class files
- rm_na example/*.class
+ cd example || exit 1
+
+ for file in Example_*.class; do
+ echo "file: " $file
+ rm_na "$file"
+ wrapper_name=$(basename "$file" .class)
+ rm_na "$wrapper_name"
+ done
+
set +x
--- /dev/null
+# correct shell environment test
+#
+ env_must_be="developer/toolđź–‰/env"
+ if [ "$ENV" != "$env_must_be" ]; then
+ echo "$(script_fp):: error: must be run in the $env_must_be environment"
+ exit 1
+ fi
+
+# turn off literal shell globs
+# bash options do not become part of the environment
+# Without this bash takes unmatching globs literally
+#
+ shopt -s nullglob
+
# the package name in scratch_pad. If the `-nolink` option is specified,
# it makes a copy instead of a link.
-# Input guards
-env_must_be="developer/toolđź–‰/env"
-if [ "$ENV" != "$env_must_be" ]; then
- echo "$script_afp:: error: must be run in the $env_must_be environment"
- exit 1
-fi
-
cd "$REPO_HOME"/developer || exit 1
+source toolđź–‰/env_script
# Parse options
nolink=false
#!/bin/env bash
script_afp=$(realpath "${BASH_SOURCE[0]}")
+cd "$REPO_HOME"/developer || exit 1
+source toolđź–‰/env_script
+
# Ariadne does not currently package any third party tools with the .jar
# release, so this script does nothing.
# This script expands Mosaic third party projects onto the scratchpad. This is done before releasing or running local ad hoc tests, so that the third party tools will be present. I.e. this is for creating a 'fat' jar.
-# Input guards
-
- env_must_be="developer/toolđź–‰/env"
- if [ "$ENV" != "$env_must_be" ]; then
- echo "$(script_fp):: error: must be run in the $env_must_be environment"
- exit 1
- fi
-
- cd "$REPO_HOME"/developer
-
# Expand the third party tools into the package tree
# echo "Expanding .jar files to be included with Mosaic into scratchpad."
#!/bin/env bash
script_afp=$(realpath "${BASH_SOURCE[0]}")
-# input guards
-
- env_must_be="developer/toolđź–‰/env"
- if [ "$ENV" != "$env_must_be" ]; then
- echo "$(script_fp):: error: must be run in the $env_must_be environment"
- exit 1
- fi
-
- cd "$REPO_HOME"/developer
+cd "$REPO_HOME"/developer || exit 1
+source toolđź–‰/env_script
echo "Compiling files..."
set -x
echo "Creating bash wrappers..."
mkdir -p bash
- # wrapper is a space separated list
wrapper=$(bash_wrapper_list)
- for file in $wrapper;do
+ for file in "${wrapper[@]}"; do
cat > bash/$file << EOL
#!/bin/bash
java com.ReasoningTechnology."$PROJECT".$file
#!/bin/env bash
script_afp=$(realpath "${BASH_SOURCE[0]}")
-# input guards
+cd "$REPO_HOME"/developer || exit 1
+source toolđź–‰/env_script
- env_must_be="developer/toolđź–‰/env"
- if [ "$ENV" != "$env_must_be" ]; then
- echo "$(script_fp):: error: must be run in the $env_must_be environment"
- exit 1
- fi
- cd "$REPO_HOME"/developer/example
+cd example || exit 1
echo "Compiling example .java files..."
set -x
-wrapper=(Example_*.class)
-
-for file in "${wrapper[@]}"; do
+for file in Example_*.class; do
+ echo "file: " $file
wrapper_name=$(basename "$file" .class)
cat > "$wrapper_name" << EOL
#!/bin/bash
# Make the wrapper executable
chmod +x "$wrapper_name"
-done
+ done
set +x
# before running this script, gather everything needed for the release on the scratchpad
-# input guards
+cd "$REPO_HOME"/developer || exit 1
+source toolđź–‰/env_script
- if [ -z "$REPO_HOME" ]; then
- echo "$(script_fp):: REPO_HOME is not set."
- exit 1
- fi
+# Inform the user
- env_must_be="developer/toolđź–‰/env"
- if [ "$ENV" != "$env_must_be" ]; then
- echo "$(script_fp):: must be run in the $env_must_be environment"
- exit 1
- fi
+ echo "The pwd for this script is `pwd`."
- cd "$REPO_HOME"/developer
+# we build into the scratchpad
if [ ! -d scratchpad ]; then
echo "$(script_fp):: no scratchpad directory"
fi
-# Inform the user
-
- echo "The pwd for this script is `pwd`."
-
# Function to copy and set permissions
install_file() {
exit 1
fi
+# without this bash takes non-matching globs literally
+shopt -s nullglob
+
# --------------------------------------------------------------------------------
# project definition