/[debian]/nanobloggertrackback/branches/upstream/current/nb_tb-setup
ViewVC logotype

Diff of /nanobloggertrackback/branches/upstream/current/nb_tb-setup

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 282 by gregoa, Tue Mar 21 16:14:16 2006 UTC revision 283 by gregoa, Thu May 25 22:04:00 2006 UTC
# Line 27  CURDIR=$(/usr/bin/dirname $RPATH) Line 27  CURDIR=$(/usr/bin/dirname $RPATH)
27  CGIDIR=  CGIDIR=
28  CGIURL=  CGIURL=
29  BLOGDIR=  BLOGDIR=
30    BLOGURL=
31  PASSWORD=  PASSWORD=
32  EMAIL=  EMAIL=
33  CSS=  CSS=
34    
35  # get config  # get config
36  while [ -z "$CGIDIR" ]; do  while [ -z "$CGIDIR" ]; do
37          echo -n "cgi-bin directory (e.g. /home/sepp/public_html/cgi-bin): "          echo -n "cgi-bin directory (e.g. /home/jane/public_html/cgi-bin): "
38          read CGIDIR          read CGIDIR
39  done  done
40    
# Line 41  echo "You have to make sure that scripts Line 42  echo "You have to make sure that scripts
42  read -p "Press return to continue" DUMMY  read -p "Press return to continue" DUMMY
43    
44  while [ -z "$CGIURL" ]; do  while [ -z "$CGIURL" ]; do
45          echo -n "cgi-bin URL (e.g. http://info.example.org/~sepp/cgi-bin): "          echo -n "cgi-bin URL (e.g. http://info.example.org/~jane/cgi-bin): "
46            read CGIURL
47    done
48    
49    while [ -z "$BLOGURL" ]; do
50            echo -n "blog URL (e.g. http://info.example.org/~jane/blog): "
51          read CGIURL          read CGIURL
52  done  done
53    
54  while [ -z "$BLOGDIR" ]; do  while [ -z "$BLOGDIR" ]; do
55          echo -n "nanoblogger directory (e.g. /home/sepp/public_html/blog): "          echo -n "nanoblogger directory (e.g. /home/jane/public_html/blog): "
56          read BLOGDIR          read BLOGDIR
57  done  done
58    
# Line 96  echo "OK" Line 102  echo "OK"
102  # copy cgi and change  # copy cgi and change
103  echo -n "Copying and changing cgi script ... "  echo -n "Copying and changing cgi script ... "
104  cp --preserve=mode $CURDIR/tb.cgi $CGIDIR/ || exit 1  cp --preserve=mode $CURDIR/tb.cgi $CGIDIR/ || exit 1
105  perl -pi -e "s~BLOGDIR~$BLOGDIR~; s~PASSWORD~$PASSWORD~; s~EMAIL~$EMAIL~;" $CGIDIR/tb.cgi || exit 1  perl -pi -e "s~BLOGDIR~$BLOGDIR~; s~BLOGURL~$BLOGURL~; s~PASSWORD~$PASSWORD~; s~EMAIL~$EMAIL~;" $CGIDIR/tb.cgi || exit 1
106  echo "OK"  echo "OK"
107    
108  # copy footer/header  # copy footer/header
# Line 140  CURDIR= Line 146  CURDIR=
146  CGIDIR=  CGIDIR=
147  CGIURL=  CGIURL=
148  BLOGDIR=  BLOGDIR=
149    BLOGURL=
150  PASSWORD=  PASSWORD=
151  EMAIL=  EMAIL=
152  CSS=  CSS=

Legend:
Removed from v.282  
changed lines
  Added in v.283

  ViewVC Help
Powered by ViewVC 1.1.26