Author: sebb
Date: Sun Jun 22 21:15:24 2025
New Revision: 1926647
URL: http://svn.apache.org/viewvc?rev=1926647&view=rev
Log:
Run from anywhere (useful in IDEs)
Modified:
comdev/reporter.apache.org/trunk/site/wizard/js/source/build.sh
Modified: comdev/reporter.apache.org/trunk/site/wizard/js/source/build.sh
URL:
http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/wizard/js/source/build.sh?rev=1926647&r1=1926646&r2=1926647&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/js/source/build.sh (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/js/source/build.sh Sun Jun 22
21:15:24 2025
@@ -1,3 +1,10 @@
+#!/usr/bin/env bash
+
+# Try to change to correct directory:
+cd $(dirname "$0") || exit 1
+
+test -r build.sh || { echo "Must be run from the directory containing
build.sh!"; exit 1; }
+
echo "Combining JS..."
echo '/*
Licensed to the Apache Software Foundation (ASF) under one or more