Last change
on this file since 34397 was 34397, checked in by davidb, 4 years ago |
Scripts to simplify rebuilding *this* collection
|
File size:
510 bytes
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | cwd=`pwd`
|
---|
4 | col=${cwd##*/}
|
---|
5 |
|
---|
6 | site_tail=${cwd%*/*/*}
|
---|
7 | site=${site_tail##*/}
|
---|
8 |
|
---|
9 | echo "Full reconfiguration of site/col:"
|
---|
10 | echo " $site/$col"
|
---|
11 | echo ""
|
---|
12 |
|
---|
13 |
|
---|
14 | # sets variable $library_url
|
---|
15 | source ./_library_url.sh
|
---|
16 | reconfig_url="$library_url?a=s&sa=c&sc=$col"
|
---|
17 |
|
---|
18 | echo "Running:"
|
---|
19 | echo " wget -O /dev/null \"$reconfig_url\""
|
---|
20 |
|
---|
21 | wget -O /dev/null "$reconfig_url" >/dev/null 2>&1
|
---|
22 |
|
---|
23 | status=$?
|
---|
24 |
|
---|
25 | if [ $status != 0 ] ; then
|
---|
26 | echo "Error encountered when requesting Greenstone3 reconfiguration" 1>&2
|
---|
27 | else
|
---|
28 | echo "Done"
|
---|
29 | fi
|
---|
Note:
See
TracBrowser
for help on using the repository browser.