Update of /cvsroot/sandweb/sandweb/tools
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24483/tools
Modified Files:
install_script.pl
Log Message:
made relative images path "/images" by default, it's configurable
in install.cfg now, no reason to ask everytime
Index: install_script.pl
===================================================================
RCS file: /cvsroot/sandweb/sandweb/tools/install_script.pl,v
retrieving revision 1.25
retrieving revision 1.26
diff -U2 -r1.25 -r1.26
--- install_script.pl 8 Mar 2004 08:01:56 -0000 1.25
+++ install_script.pl 8 Mar 2004 08:35:08 -0000 1.26
@@ -28,4 +28,5 @@
"cgidir = $cgidir\n".
"imgdir = $imgdir\n".
+ "imgpath = $imgpath\n".
"tmpldir = $tmpldir\n".
"cachedir = $cachedir\n".
@@ -100,14 +101,15 @@
exit(3) if (!$imgdir);
-print("-------------------------\n");
-print("Specify the location of the images relative to your web server's document root.\n");
-print("[default: $imgpath] : ");
-my $tmp = '';
-chomp($tmp = <STDIN>);
-if ($tmp) {
- $imgpath = $tmp;
+if (!$imgpath){
+ print("-------------------------\n");
+ print("Specify the location of the images relative to your web server's document root.\n");
+ print("[default: $imgpath] : ");
+ my $tmp = '';
+ chomp($tmp = <STDIN>);
+ if ($tmp) {
+ $imgpath = $tmp;
+ }
}
-
# Templates
$tmpldir = insttemplates($tmpldir);
|