aboutsummaryrefslogtreecommitdiffstats
path: root/conf/am_edit
diff options
context:
space:
mode:
Diffstat (limited to 'conf/am_edit')
-rw-r--r--conf/am_edit9
1 files changed, 7 insertions, 2 deletions
diff --git a/conf/am_edit b/conf/am_edit
index bab2c27..d597c9e 100644
--- a/conf/am_edit
+++ b/conf/am_edit
@@ -128,6 +128,11 @@ while (defined ($ARGV[0]))
warn ("$thisProg doesn't exist\n") if (!(-f $thisProg));
$pathoption=1;
}
+ elsif (/^-t\s*(.+)$|^--topdir=(.+)$/)
+ {
+ $KDEtopdir = $1 if($1);
+ $KDEtopdir = $2 if($2);
+ }
elsif (/^--help$|^-h$/)
{
print STDOUT "Usage $thisProg [OPTION] ... [dir/Makefile.in]...\n",
@@ -281,7 +286,7 @@ sub processMakefile ($)
tag_ICON();
my $tmp = "force-reedit:\n";
- $tmp .= "\t$automkCall\n\tcd \$(top_srcdir) && perl $thisProg $printname\n\n";
+ $tmp .= "\t$automkCall\n\tcd \$(top_srcdir)/$KDEtopdir && perl $thisProg $printname\n\n";
appendLines($tmp);
make_meta_classes();
@@ -742,7 +747,7 @@ sub tag_AUTOMAKE ()
return 1 if ($MakefileData !~ /($lookup)/);
print STDOUT "AUTOMAKE processing <$1>\n" if ($verbose);
- my $newLine = $1."\n\tcd \$(top_srcdir) && perl $thisProg $printname";
+ my $newLine = $1."\n\tcd \$(top_srcdir)/$KDEtopdir && perl $thisProg $printname";
substituteLine ($lookup, $newLine);
$automkCall = $1;
return 0;