clean scripts
authorThomas Walker Lynch <xtujpz@reasoningtechnology.com>
Fri, 11 Oct 2024 06:32:21 +0000 (06:32 +0000)
committerThomas Walker Lynch <xtujpz@reasoningtechnology.com>
Fri, 11 Oct 2024 06:32:21 +0000 (06:32 +0000)
developer/shell/black [deleted file]
developer/shell/blue [deleted file]
developer/shell/green [deleted file]
developer/tool/clean
developer/tool/clean_all
developer/tool/clean_dist
developer/tool/release

diff --git a/developer/shell/black b/developer/shell/black
deleted file mode 100755 (executable)
index d94d9cb..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/bash
-java com/ReasoningTechnology/PaintIt/Black
diff --git a/developer/shell/blue b/developer/shell/blue
deleted file mode 100755 (executable)
index 387f82a..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/bash
-java com/ReasoningTechnology/PaintIt/Blue
diff --git a/developer/shell/green b/developer/shell/green
deleted file mode 100755 (executable)
index 9611a51..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/bash
-java com/ReasoningTechnology/PaintIt/Green
index bd986dd..f061336 100755 (executable)
@@ -11,6 +11,9 @@ if [ -z "$ENV_DEV_BUILD" ]; then
   exit 1
 fi
 
+set -x
+cd "$REPO_HOME"/developer
 rm -rf scratch_pad/*
+set +x
 
 echo "clean complete."
index 8b7cc21..13ce69b 100755 (executable)
@@ -12,8 +12,10 @@ if [ -z "$ENV_DEV_BUILD" ]; then
 fi
 
 set -x
+cd "$REPO_HOME"/developer
 rm -rf scratch_pad/*
 rm -rf jvm/PaintIt.jar
+rm -rf shell/{black,blue,green}
 set +x
 
 echo "clean_all complete."
index cd35a39..334c826 100755 (executable)
@@ -15,9 +15,12 @@ fi
 release_dir="$REPO_HOME"/release_candidate
 
 set -x
+cd "$REPO_HOME"/developer
 rm -rf scratch_pad/*
-rm -rf jvm/PaintIt.jar
-rm -rf "$release_dir"
+rm -f jvm/PaintIt.jar
+rm -f shell/{black,blue,green}
+rm -f "$release_dir"/PaintIt.jar
+rm -f "$release_dir"/{black,blue,green}
 set +x
 
 echo "clean_dist complete."
index 5c76606..5569657 100755 (executable)
@@ -37,10 +37,16 @@ install_file() {
 
 echo "Starting release process..."
 
-# Paths to build script and JAR file
+# Paths to shell wrappers and JAR file
+shell_dir="$REPO_HOME/developer/shell"
 PaintIt_jar_fp="$REPO_HOME/developer/jvm/PaintIt.jar"
 
 # Install the JAR file
 install_file "$PaintIt_jar_fp" "$release_dir" "ug+r"
 
+# Install shell wrappers
+for wrapper in black blue green; do
+  install_file "$shell_dir/$wrapper" "$release_dir" "ug+r+x"
+done
+
 echo "Release process completed successfully."