summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2014-03-06 13:38:44 -0500
committerJames Moger <james.moger@gitblit.com>2014-03-06 13:38:44 -0500
commit6a74e2d8ce1a0c6bcd64bdb1c64907726d007345 (patch)
tree2934fde3aa54b3180e44e66437b4d7c62532bfc5
parent88693e491b0d929b6b3f5783d11126fce87b1370 (diff)
downloadgitblit-6a74e2d8ce1a0c6bcd64bdb1c64907726d007345.tar.gz
gitblit-6a74e2d8ce1a0c6bcd64bdb1c64907726d007345.zip
Improve the GO reindex-tickets shell scripts
-rw-r--r--src/main/distrib/linux/reindex-tickets.sh9
-rw-r--r--src/main/distrib/win/reindex-tickets.cmd17
2 files changed, 22 insertions, 4 deletions
diff --git a/src/main/distrib/linux/reindex-tickets.sh b/src/main/distrib/linux/reindex-tickets.sh
index 15939291..5a4fc34f 100644
--- a/src/main/distrib/linux/reindex-tickets.sh
+++ b/src/main/distrib/linux/reindex-tickets.sh
@@ -11,5 +11,14 @@
#
# --------------------------------------------------------------------------
+if [ -z $1 ]; then
+ echo "Please specify your baseFolder!";
+ echo "";
+ echo "usage:";
+ echo " reindex-tickets <baseFolder>";
+ echo "";
+ exit 1;
+fi
+
java -cp gitblit.jar:./ext/* com.gitblit.ReindexTickets --baseFolder $1
diff --git a/src/main/distrib/win/reindex-tickets.cmd b/src/main/distrib/win/reindex-tickets.cmd
index e28f45f5..c9116ca2 100644
--- a/src/main/distrib/win/reindex-tickets.cmd
+++ b/src/main/distrib/win/reindex-tickets.cmd
@@ -4,10 +4,19 @@
@REM Since the Tickets feature is undergoing massive churn it may be necessary
@REM to reindex tickets due to model or index changes.
@REM
-@REM Always use forward-slashes for the path separator in your parameters!!
+@REM usage:
+@REM reindex-tickets <baseFolder>
@REM
-@REM Set FOLDER to the baseFolder.
@REM --------------------------------------------------------------------------
-@SET FOLDER=data
+@if [%1]==[] goto nobasefolder
-@java -cp gitblit.jar;"%CD%\ext\*" com.gitblit.ReindexTickets --baseFolder %FOLDER%
+@java -cp gitblit.jar;"%CD%\ext\*" com.gitblit.ReindexTickets --baseFolder %1
+@goto end
+
+:nobasefolder
+@echo "Please specify your baseFolder!"
+@echo
+@echo " reindex-tickets c:/gitblit-data"
+@echo
+
+:end \ No newline at end of file