summaryrefslogtreecommitdiff
path: root/solenv/bin/linkoo
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@frugalware.org>2012-01-01 20:20:46 +0100
committerMiklos Vajna <vmiklos@frugalware.org>2012-01-01 20:20:46 +0100
commit8033e3343b6e043abe2ef31ba2c90e3f5382ad25 (patch)
tree3599484c075d962c1a0bac61ba42fe65caa0bd8f /solenv/bin/linkoo
parentf1c44b848f77bb4de8a19059e0d514bfb75da90b (diff)
fix linkoo after moving INPATH to config_host.mk
Diffstat (limited to 'solenv/bin/linkoo')
-rwxr-xr-xsolenv/bin/linkoo37
1 files changed, 23 insertions, 14 deletions
diff --git a/solenv/bin/linkoo b/solenv/bin/linkoo
index 300883542af3..ade1ee70aae9 100755
--- a/solenv/bin/linkoo
+++ b/solenv/bin/linkoo
@@ -146,20 +146,27 @@ sub sniff_target($)
opendir ($dirhandle, $build_dir) || die "Can't open $build_dir";
while ($fname = readdir ($dirhandle)) {
- $fname =~ /Host.sh$/ || next;
-
- my $file;
- open ($file, "$build_dir/$fname") || die "Can't open $build_dir/$fname";
- while (<$file>) {
- /\s*(\S+)\s*=\s*\"(\S+)\"/ || next;
- if ($1 eq 'INPATH') {
- $target = $2;
- }
- if ($1 eq 'UPD') {
- $libver = $2;
- }
- }
- close ($file);
+ if ($fname =~ /Host.sh$/) {
+ my $file;
+ open ($file, "$build_dir/$fname") || die "Can't open $build_dir/$fname";
+ while (<$file>) {
+ /\s*(\S+)\s*=\s*\"(\S+)\"/ || next;
+ if ($1 eq 'UPD') {
+ $libver = $2;
+ }
+ }
+ close ($file);
+ } elsif ($fname =~ /host.mk$/) {
+ my $file;
+ open ($file, "$build_dir/$fname") || die "Can't open $build_dir/$fname";
+ while (<$file>) {
+ /\s*export\s*(\S+)\s*=\s*\"(\S+)\"/ || next;
+ if ($1 eq 'INPATH') {
+ $target = $2;
+ }
+ }
+ close ($file);
+ }
}
closedir ($dirhandle);
@@ -438,3 +445,5 @@ if (!-f "$OOO_INSTALL/" . $brand_program_dir . "/ooenv") {
evilness ('do');
print "\nlinkoo finished, please don't forget to source ooenv before ./soffice.\n";
+
+# vim:set shiftwidth=4 softtabstop=4 expandtab: