Ignore:
Timestamp:
2013-05-02T16:28:29+12:00 (11 years ago)
Author:
davidb
Message:

Further improvements to installing required files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs2-extensions/afrepo/trunk/src/src/CASCADE-MAKE.sh

    r27266 r27287  
    3939echo "****** Test to see if 'audiofiles' exists => generate message if not? ==> auto run cmd ???"
    4040
    41 /bin/cp $srcdir/examples/afrepo/AFRepo.localtest.class.php $GEXTAMP_INSTALLED/htdocs/afrepo/AFRepo.class.php
     41
     42protocol=http
     43hostname=`hostname`
     44port=`egrep "^Listen" $GEXTAMP_INSTALLED/conf/httpd.conf | awk '{print $2}'`
     45
     46f4store_port=`echo $port+1 | bc`
     47
     48has_afrepo_conf=`egrep "^Include conf/httpd-afrepo.conf" "$GEXTAMP_INSTALLED/conf/httpd.conf"`
     49
     50if [ "x$has_afrepo_conf" = "x" ] ; then
     51  # Not currently in file => append it
     52
     53  echo "Include conf/httpd-afrepo.conf" >> "$GEXTAMP_INSTALLED/conf/httpd.conf"
     54fi
     55
     56cat "httpd-afrepo.conf.in" \
     57  | sed "s%@4store-http-prefix@%$protocol://$hostname:$f4store_port%g" > "$GEXTAMP_INSTALLED/conf/httpd-afrepo.conf"
    4258
    4359
    44 echo ""
    45 echo "****"
    46 echo "* Afrepo extension now installed in "
    47 echo "*   $GEXTAMP_INSTALLED"
    48 echo "*"
    49 echo "* Place audio files in: "
    50 echo "*   $GEXTAMP_INSTALLED/htdocs/afrepo/localtest"
    51 echo "*"
    52 echo "* Run: "
    53 echo "*   makelinks"
    54 echo "* to populate:"
    55 echo "*   $GEXTAMP_INSTALLED/htdocs/afrepo/audio"
    56 echo "*"
    57 echo "* Finall, run: "
    58 echo "*   apchectl start"
    59 echo "*"
    60 echo "* And in a web browser load up the URL:"
    61 echo "*   http://localhost:8282/afrepo/"
    62 echo "****"
    63 echo ""
     60cat "AFRepo.GSDLEXT.class.php.in" \
     61  | sed "s%@afrepo-http-prefix@%$protocol://$hostname:$port%g" \
     62  | sed "s%@4store-http-prefix@%$protocol://$hostname:$f4store_port%g" > "$GEXTAMP_INSTALLED/htdocs/afrepo/AFRepo.class.php"
     63
     64cat DONE.txt \
     65  | sed "s%@GEXTAMP_INSTALLED@%$GEXTAMP_INSTALLED%g" \
     66  | sed "s%@4store-port@%$f4store_port%g" \
     67  | sed "s%@afrepo-http-prefix@%$protocol://$hostname:$port%g"
     68
Note: See TracChangeset for help on using the changeset viewer.