Files
diy-layout-creator/diylc/diylc-swing/deploy/print_version.sh
T
Bane Stojkovic 3b987e2b16 tools
2025-03-24 20:47:12 +01:00

21 lines
542 B
Bash
Executable File

#!/bin/bash
# Get the directory where this script is located
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# Set DEBUG environment variable
export DEBUG=true
# Build classpath from lib and library directories
CLASSPATH=""
for jar in "$SCRIPT_DIR/../lib"/*.jar "$SCRIPT_DIR/../library"/*.jar; do
if [ -f "$jar" ]; then
CLASSPATH="$CLASSPATH:$jar"
fi
done
# Remove leading colon
CLASSPATH="${CLASSPATH#:}"
# Run the VersionReader class
java -cp "$CLASSPATH" org.diylc.utils.VersionReader "$SCRIPT_DIR/../"