summaryrefslogtreecommitdiff
path: root/rpm.c
diff options
context:
space:
mode:
authoradevries <devnull@localhost>1998-08-06 21:53:07 +0000
committeradevries <devnull@localhost>1998-08-06 21:53:07 +0000
commit8bdb7e0448feb227dcf1050e57db255c6b136e27 (patch)
treedd71917c7a91ed76a019e00a4f551b4e819dd3ab /rpm.c
parent73a5b61c2685454e8d716aab23257a0e7ec5e2e2 (diff)
downloadrpm-8bdb7e0448feb227dcf1050e57db255c6b136e27.tar.gz
rpm-8bdb7e0448feb227dcf1050e57db255c6b136e27.tar.bz2
rpm-8bdb7e0448feb227dcf1050e57db255c6b136e27.zip
This gets rid of all the basic rpm options for --buildarch and --buildos.
CVS patchset: 2236 CVS date: 1998/08/06 21:53:07
Diffstat (limited to 'rpm.c')
-rwxr-xr-xrpm.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/rpm.c b/rpm.c
index 378dca711..4c6cc9b20 100755
--- a/rpm.c
+++ b/rpm.c
@@ -223,8 +223,9 @@ static void printUsage(void) {
puts(_(" [--dbpath <dir>] [--nodeps] [--allmatches]"));
puts(_(" [--justdb] [--notriggers] rpackage1 ... packageN"));
puts(_(" rpm {-b|t}[plciba] [-v] [--short-circuit] [--clean] [--rcfile <file>]"));
- puts(_(" [--sign] [--test] [--timecheck <s>] [--buildos <os>]"));
- puts(_(" [--buildarch <arch>] [--rmsource] specfile"));
+ puts(_(" [--sign] [--test] [--timecheck <s>] ]"));
+ puts(_(" [--buildplatform=platform1[,platform2...]]"));
+ puts(_(" [--rmsource] specfile"));
puts(_(" rpm {--rmsource} [--rcfile <file>] [-v] specfile"));
puts(_(" rpm {--rebuild} [--rcfile <file>] [-v] source1.rpm ... sourceN.rpm"));
puts(_(" rpm {--recompile} [--rcfile <file>] [-v] source1.rpm ... sourceN.rpm"));
@@ -451,10 +452,8 @@ static void printHelp(void) {
_("generate PGP signature"));
printHelpLine(" --buildroot <dir> ",
_("use <dir> as the build root"));
- printHelpLine(" --buildarch <arch> ",
- _("build the packages for architecture <arch>"));
- printHelpLine(" --buildos <os> ",
- _("build the packages for ositecture <os>"));
+ printHelpLine(" --platform=platform1[,platform2,... platformN]",
+ _("build the packages for the platform1...platformN build targets."));
printHelpLine(" --test ",
_("do not execute any stages"));
printHelpLine(" --timecheck <s> ",
@@ -578,9 +577,13 @@ int main(int argc, char ** argv) {
if (!strcmp(*currarg, "--rcfile")) {
rcfile = *(++currarg);
} else if (!strcmp(*currarg, "--buildarch")) {
- arch = *(++currarg);
+ fprintf(stderr, "--buildarch has been obsoleted. Use the --buildplatform option\n");
+ fprintf(stderr, "with a platform specific rpmrc file with a Buildarch: tag set\n");
+ exit(1);
} else if (!strcmp(*currarg, "--buildos")) {
- os = *(++currarg);
+ fprintf(stderr, "--buildos has been obsoleted. Use the --buildplatform option\n");
+ fprintf(stderr, "with a platform specific rpmrc file with a Buildos: tag set\n");
+ exit(1);
} else if (!strcmp(*currarg, "--showrc")) {
showrc = 1;
building = 1;