summaryrefslogtreecommitdiffstats
path: root/news_wizard
diff options
context:
space:
mode:
authorFrederic Crozat <fcrozat@mandriva.com>2002-08-22 16:36:52 +0000
committerFrederic Crozat <fcrozat@mandriva.com>2002-08-22 16:36:52 +0000
commit8cb296dff1704b8b7247ebe8635a54e8336edb58 (patch)
tree4bd459fded1b169683083342e433debb98e16e9c /news_wizard
parent232ed05f74df058f955466b13b779e2624fd8f22 (diff)
downloaddrakwizard-8cb296dff1704b8b7247ebe8635a54e8336edb58.tar
drakwizard-8cb296dff1704b8b7247ebe8635a54e8336edb58.tar.gz
drakwizard-8cb296dff1704b8b7247ebe8635a54e8336edb58.tar.bz2
drakwizard-8cb296dff1704b8b7247ebe8635a54e8336edb58.tar.xz
drakwizard-8cb296dff1704b8b7247ebe8635a54e8336edb58.zip
Fix search and replace for __WIZ_HOME__ and fix wrongly committed files
Diffstat (limited to 'news_wizard')
-rw-r--r--news_wizard/news.wiz14
-rw-r--r--news_wizard/scripts/Newsconf.pm6
2 files changed, 10 insertions, 10 deletions
diff --git a/news_wizard/news.wiz b/news_wizard/news.wiz
index 478c7c2e..497b0ce4 100644
--- a/news_wizard/news.wiz
+++ b/news_wizard/news.wiz
@@ -3,11 +3,11 @@
<Wizard
name="general"
- libScript="/usr/share/wizards/common/scripts/functions.sh"
+ libScript="__WIZ_HOME__/common/scripts/functions.sh"
wizardTitle="News Wizard"
imagePosition="top"
- defaultImage="/usr/share/wizards/news_wizard/images/news"
- perlModule="/usr/share/wizards/news_wizard/scripts/Newsconf.pm"
+ defaultImage="__WIZ_HOME__/news_wizard/images/news"
+ perlModule="__WIZ_HOME__/news_wizard/scripts/Newsconf.pm"
>
<Variable
@@ -31,7 +31,7 @@
<Page
name="Welcome"
helpURL="file:/usr/share/doc/mandrake/${LANG}/ref.html/wiz-news.html"
- jumpScript="/usr/share/wizards/common/scripts/check.sh root wiz_ip_net"
+ jumpScript="__WIZ_HOME__/common/scripts/check.sh root wiz_ip_net"
executionLevel="NORMAL"
nextFinish="false"
canBack="true"
@@ -71,7 +71,7 @@
<Page
name="ask_news_server"
helpURL="file:/usr/share/doc/mandrake/${LANG}/ref.html/wiz-news.html"
- jumpScript="/usr/share/wizards/news_wizard/scripts/check_news_server.sh"
+ jumpScript="__WIZ_HOME__/news_wizard/scripts/check_news_server.sh"
executionLevel="NORMAL"
nextFinish="false"
canBack="true"
@@ -139,7 +139,7 @@
<Page
name="ask_news_freq"
helpURL="file:/usr/share/doc/mandrake/${LANG}/ref.html/wiz-news.html"
- jumpScript="/usr/share/wizards/news_wizard/scripts/check_valid_hours.sh"
+ jumpScript="__WIZ_HOME__/news_wizard/scripts/check_valid_hours.sh"
executionLevel="NORMAL"
nextFinish="false"
canBack="true"
@@ -319,7 +319,7 @@ needed to configure your Internet News Service:"
<Page
name="error_need_net"
helpURL="file:/usr/share/doc/mandrake/${LANG}/ref.html/wiz-news.html"
- subWizard="/usr/share/wizards/server_wizard/server.wiz"
+ subWizard="__WIZ_HOME__/server_wizard/server.wiz"
executionLevel="NORMAL"
nextFinish="false"
canBack="false"
diff --git a/news_wizard/scripts/Newsconf.pm b/news_wizard/scripts/Newsconf.pm
index 158939c0..a0968891 100644
--- a/news_wizard/scripts/Newsconf.pm
+++ b/news_wizard/scripts/Newsconf.pm
@@ -1,7 +1,7 @@
#!/usr/bin/perl
package Newsconf;
-require "/usr/share/wizards/common/scripts/Vareqval.pm";
+require "__WIZ_HOME__/common/scripts/Vareqval.pm";
use MDK::Common;
use strict;
@@ -39,7 +39,7 @@ sub do_it {
if (! -f $file) { die "$file not found: $!"};
my $tmp = `mktemp /tmp/Newsconf.XXXXXX`
or die "can't make a temp file: $!";
- open(OLD, "< /usr/share/wizards/news_wizard/scripts/config.default")
+ open(OLD, "< __WIZ_HOME__/news_wizard/scripts/config.default")
or die "can't open default: $!";
open(NEW, "> $tmp")
or die "can't open $tmp: $!";
@@ -60,7 +60,7 @@ sub do_it {
my $file = "/etc/leafnode/crontab";
my $tmp = `mktemp /tmp/Newsconf.XXXXXX`
or die "can't make a temp file: $!";
- open(OLD, "< /usr/share/wizards/news_wizard/scripts/news.cron")
+ open(OLD, "< __WIZ_HOME__/news_wizard/scripts/news.cron")
or die "can't open default: $!";
open(NEW, "> $tmp")
or die "can't open $tmp: $!";