summaryrefslogtreecommitdiff
path: root/Build.pm
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2010-04-29 12:27:10 +0200
committerMichael Schroeder <mls@suse.de>2010-04-29 12:27:10 +0200
commitd7e88d1e4376538587bccf8bd3968fa1045a6e60 (patch)
tree8906168938476db088a1c51b33b8fb17ee346d4c /Build.pm
parent545a3158d0a41df5f168c04ac54138116c614a30 (diff)
- rename 'changetarget' to 'target' in config ('changetarget' still works)
- rename ABUILD_TARGET_ARCH to ABUILD_TARGET, as the rpm option is just --target - cleanup changetarget script a bit
Diffstat (limited to 'Build.pm')
-rw-r--r--Build.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/Build.pm b/Build.pm
index 566538f..6072d45 100644
--- a/Build.pm
+++ b/Build.pm
@@ -216,8 +216,8 @@ sub read_config {
$config->{'release'} = $l[0];
} elsif ($l0 eq 'releaseprg:') {
$config->{'releaseprg'} = $l[0];
- } elsif ($l0 eq 'changetarget:') {
- $config->{'changetarget'} = join(' ', @l);
+ } elsif ($l0 eq 'changetarget:' || $l0 eq 'target:') {
+ $config->{'target'} = join(' ', @l);
} elsif ($l0 !~ /^[#%]/) {
warn("unknown keyword in config: $l0\n");
}