File: gen_tests.sh

package info (click to toggle)
libapache2-mod-rpaf 0.6-7%2Bwheezy1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 176 kB
  • sloc: ansic: 302; perl: 122; makefile: 49; sh: 33
file content (26 lines) | stat: -rwxr-xr-x 745 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh
PATH=$PATH:/home/thomas/build/apache-dev/bin
DIRECTORY=`pwd`/t
HTTPD=`which httpd`
HTTPD2=`which apache2`

cat test-Makefile-template | sed -s "s|\@\@HTTPD\@\@|$HTTPD|" | sed -s "s|\@\@HTTPD2\@\@|$HTTPD2|" > t/Makefile


if [ "$HTTPD" != "" ]; then
  echo "Found httpd as $HTTPD"
  echo "Creating test configuration for apache 1.3.x"
  echo "in directory $DIRECTORY"
  cat httpd-rpaf.conf-template | sed -s "s|\@\@DIR\@\@|$DIRECTORY|" > t/httpd-rpaf.conf
fi

APACHE2=`which apache2`

if [ "$APACHE2" != "" ]; then
  echo "Found apache2 as $HTTPD"
  echo "Creating test configuration for apache 2.x.x"
  echo "in directory $DIRECTORY"
  cat httpd-rpaf.conf-template-2.0 | sed -s "s|\@\@DIR\@\@|$DIRECTORY|" > t/httpd-rpaf.conf-2.0
fi