Last change
on this file since 27679 was 27613, checked in by davidb, 11 years ago |
Create AFR-SETUP.sh from its '.in' counterpart if it does not already exist
|
-
Property svn:executable
set to
*
|
File size:
766 bytes
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 |
|
---|
4 | if [ "x$GEXTAMP_INSTALLED" = "x" ] ; then
|
---|
5 | echo "Environment variable GEXTAMP_INSTALLED not set" >&2
|
---|
6 | echo "Have you sourced the extensions setup file?" >&2
|
---|
7 | exit
|
---|
8 | fi
|
---|
9 |
|
---|
10 |
|
---|
11 | if [ "x$GEXT_AFREPO" = "x" ] ; then
|
---|
12 | echo "Environment variable GEXT_AFREPO not set" >&2
|
---|
13 | echo "Have you sourced the extensions setup file?" >&2
|
---|
14 | exit
|
---|
15 | fi
|
---|
16 |
|
---|
17 | if [ ! -f $GEXT_AFREPO/AFR-SETUP.sh ] ; then
|
---|
18 | echo "Generating AFR-SETUP.sh from AFR-SETUP.sh.in"
|
---|
19 | /bin/cp $GEXT_AFREPO/AFR-SETUP.sh.in $GEXT_AFREPO/AFR-SETUP.sh
|
---|
20 | fi
|
---|
21 |
|
---|
22 | source $GEXT_AFREPO/AFR-SETUP.sh
|
---|
23 |
|
---|
24 | echo "*** port = $port"
|
---|
25 |
|
---|
26 | cat $GEXT_AFREPO/src/DONE.txt \
|
---|
27 | | sed "s%@GEXTAMP_INSTALLED@%$GEXTAMP_INSTALLED%g" \
|
---|
28 | | sed "s%@4store-port@%$f4store_port%g" \
|
---|
29 | | sed "s%@afrepo-http-prefix@%$protocol://$hostname:$port%g"
|
---|
30 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.