- Timestamp:
- 2023-04-20T09:47:22+12:00 (12 months ago)
- Location:
- main/trunk/greenstone3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/ant-restart-with-exts.sh
r37682 r37684 4 4 # in companion "ANT-*CUSTOM.sh" scripts 5 5 6 ./ ANT-STOP-CUSTOM.sh && ./ANT-START-CUSTOM.sh6 ./ant-stop-with-exts.sh && ./ant-start-with-exts.sh 7 7 8 8 -
main/trunk/greenstone3/ant-start-with-exts.sh
r37682 r37684 12 12 if [ -d ext ] ; then 13 13 for gsdl_ext in ext/* ; do 14 # Sourcing first for settings, then run ext's 'start' script if it exists 14 15 if [ -d $gsdl_ext ] ; then 15 if [ -f $gsdl_ext/ant-start-settings.bash ]; then16 cd $gsdl_ext > /dev/null16 cd $gsdl_ext > /dev/null 17 if [ -f ant-start-settings.bash ]; then 17 18 . ./ant-start-settings.bash 18 cd ../..19 19 fi 20 20 if [ -f ant-start.sh ]; then 21 ./ant-start.sh 22 fi 23 cd ../.. 21 24 fi 22 25 done … … 26 29 if [ -d gs2build/ext ] ; then 27 30 for gsdl_ext in gs2build/ext/* ; do 31 # Sourcing first for settings, then run ext's 'start' script if it exists 28 32 if [ -d $gsdl_ext ] ; then 29 if [ -f $gsdl_ext/ant-start-settings.bash ]; then30 cd $gsdl_ext > /dev/null33 cd $gsdl_ext > /dev/null 34 if [ -f ant-start-settings.bash ]; then 31 35 . ./ant-start-settings.bash 32 cd ../../..33 36 fi 37 if [ -f ant-start.sh ]; then 38 ./ant-start.sh 39 fi 40 cd ../../.. 34 41 fi 35 42 done -
main/trunk/greenstone3/ant-stop-with-exts.sh
r37682 r37684 1 1 #!/bin/bash 2 2 3 # Add any customized code needed here, such as environemnt variables4 3 5 4 5 if test "x$gsopt_noexts" != "x1" ; then 6 7 echo "" 8 echo "----" 9 echo "Checking for custom ant-stop extension settings (ant-stop.sh)" 10 echo "----" 11 12 # Check Greenstone3 extensions 13 if [ -d ext ] ; then 14 for gsdl_ext in ext/* ; do 15 # Run ext's 'stop' script if it exists, 16 # Then source ant-stop-settings.bash in case there are any variables 17 # the script wants to unset/restore to previous value 18 if [ -d $gsdl_ext ] ; then 19 cd $gsdl_ext > /dev/null 20 if [ -f ant-stop.sh ]; then 21 ./ant-stop.sh 22 fi 23 if [ -f ant-stop-settings.bash ]; then 24 . ./ant-stop-settings.sh 25 fi 26 cd ../.. 27 28 fi 29 done 30 fi 31 32 # Check Greenstone2 extensions 33 if [ -d gs2build/ext ] ; then 34 for gsdl_ext in gs2build/ext/* ; do 35 # Run ext's 'stop' script if it exists, 36 # Then source ant-stop-settings.bash in case there are any variables 37 # the script wants to unset/restore to previous value 38 if [ -d $gsdl_ext ] ; then 39 cd $gsdl_ext > /dev/null 40 if [ -f ant-stop.sh ]; then 41 ./ant-stop.sh 42 fi 43 if [ -f ant-stop-settings.bash ]; then 44 . ./ant-stop-settings.bash 45 fi 46 cd ../../.. 47 fi 48 done 49 fi 50 fi 51 52 53 # If needed, add any further customized code needed here, such as 54 # environemnt variables 55 6 56 ant stop 57 58 # Any customized clean up needed?
Note:
See TracChangeset
for help on using the changeset viewer.