source: gs2-extensions/afrepo/trunk/src/src/CASCADE-MAKE.sh@ 27266

Last change on this file since 27266 was 27266, checked in by davidb, 11 years ago

Untar if necessary

  • Property svn:executable set to *
File size: 1.5 KB
Line 
1#!/bin/sh
2
3package=afrepo
4version=-git-all-april2013
5
6srcdir=$package$version
7
8if [ ! -d "$srcdir" ] ; then
9 tar xvzf $srcdir.tar.gz
10fi
11
12echo ""
13echo "+ Testing for existing Greenstone extensions for AMP and echoprint"
14
15if [ "x$GEXTAMP" = "x" ] ; then
16 echo ""
17 echo "Error: Failed to find PHP-configured Apache httpd (GEXTAMP) extension"
18 echo ""
19else
20 echo "++ Found GEXTAMP: $GEXTAMP"
21fi
22
23if [ "x$GEXT_ECHOPRINT" = "x" ] ; then
24 echo ""
25 echo "Error: Failed to find GEXT_ECHOPRINT extension"
26 echo ""
27else
28 echo "++ Found GEXT_ECHOPRINT: $GEXT_ECHOPRINT"
29fi
30
31if [ ! -h $GEXTAMP_INSTALLED/htdocs/afrepo ] ; then
32 echo "++ Creating symbolic link GEXTAMP_INSTALLED/htdocs/afrepo -> $srcdir"
33 ln -s `pwd`/$srcdir $GEXTAMP_INSTALLED/htdocs/afrepo
34fi
35
36
37echo ""
38echo "What about Override apache settings ?????"
39echo "****** Test to see if 'audiofiles' exists => generate message if not? ==> auto run cmd ???"
40
41/bin/cp $srcdir/examples/afrepo/AFRepo.localtest.class.php $GEXTAMP_INSTALLED/htdocs/afrepo/AFRepo.class.php
42
43
44echo ""
45echo "****"
46echo "* Afrepo extension now installed in "
47echo "* $GEXTAMP_INSTALLED"
48echo "*"
49echo "* Place audio files in: "
50echo "* $GEXTAMP_INSTALLED/htdocs/afrepo/localtest"
51echo "*"
52echo "* Run: "
53echo "* makelinks"
54echo "* to populate:"
55echo "* $GEXTAMP_INSTALLED/htdocs/afrepo/audio"
56echo "*"
57echo "* Finall, run: "
58echo "* apchectl start"
59echo "*"
60echo "* And in a web browser load up the URL:"
61echo "* http://localhost:8282/afrepo/"
62echo "****"
63echo ""
Note: See TracBrowser for help on using the repository browser.