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

Last change on this file since 27262 was 27262, checked in by davidb, 8 years ago

Get afrepo source code set up for use

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