~ubuntu-branches/ubuntu/natty/ntop/natty

« back to all changes in this revision

Viewing changes to utils/config_h.sh

  • Committer: Bazaar Package Importer
  • Author(s): Ola Lundqvist
  • Date: 2005-01-30 21:59:13 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20050130215913-xc3ke963bw49b3k4
Tags: 2:3.0-5
* Updated README.Debian file so users will understand what to do at
  install, closes: #291794, #287802.
* Updated ntop init script to give better output.
* Also changed log directory from /var/lib/ntop to /var/log/ntop,
  closes: #252352.
* Quoted the interface list to allow whitespace, closes: #267248.
* Added a couple of logcheck ignores, closes: #269321, #269319.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
echo "Creating new-config and new-globals-defines for webInterface.c"
 
3
if test -r new-config; then
 
4
    rm -f new-config
 
5
fi
 
6
 
 
7
if test -r new-globals-define; then
 
8
    rm -f new-globals-define
 
9
fi
 
10
 
 
11
if test -r stoplist; then
 
12
    rm -f stoplist
 
13
fi
 
14
 
 
15
if test -r configlist; then
 
16
    rm -f configlist
 
17
fi
 
18
 
 
19
awk -f utils/config_h1.awk config.h.in | \
 
20
  sort | \
 
21
  uniq > configlist
 
22
 
 
23
cat configlist | \
 
24
awk -f utils/config_h2.awk config.h.in >new-config
 
25
 
 
26
mv configlist stoplist
 
27
 
 
28
awk -f utils/config_h1.awk globals-defines.h | \
 
29
  sort | \
 
30
  uniq | \
 
31
  awk -f utils/config_h2.awk globals-defines.h >new-globals-define
 
32
 
 
33
if test -r stoplist; then
 
34
    rm -f stoplist
 
35
fi
 
36
 
 
37
echo "Done!  Drop new-config in and edit new-globals-define"
 
38