aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Pipkin <d4wnr4z0r@yahoo.com>2012-05-12 23:56:05 -0500
committerJacob Pipkin <d4wnr4z0r@yahoo.com>2012-05-12 23:56:05 -0500
commitcc77365244ce23879e235f8dc11c6f58b52b93c8 (patch)
tree60dc769ed2feae1a252fa2c2d62ba7342a49fd84
parent0d6317b47fb61e4781956aeda279cda156a016c0 (diff)
downloadsbotools2-cc77365244ce23879e235f8dc11c6f58b52b93c8.tar.xz
added -compat32 bits to sboinstall
-rwxr-xr-xsboinstall17
1 files changed, 9 insertions, 8 deletions
diff --git a/sboinstall b/sboinstall
index ae63adb..78d0982 100755
--- a/sboinstall
+++ b/sboinstall
@@ -24,28 +24,29 @@ Options:
-v: version information.
-c: do not clean working files/directories after the build.
-d: clean distfiles afterward.
- -r: skip viewing of the SBo README.
-i: do not run installpkg at the end of the build process.
+ -p: install an SBo as a -compat32 pkg on a multilib x86_64 system.
+ -r: skip viewing of the SBo README.
EOF
}
my %options;
-getopts ('hvcdri',\%options);
+getopts ('hvcdrip',\%options);
show_usage () and exit(0) if exists $options{h};
show_version () and exit(0) if exists $options{v};
show_usage () and exit (0) unless exists $ARGV[0];
-unshift (@ARGV,'-c') if exists $options{c};
-unshift (@ARGV,'-d') if exists $options{d};
-unshift (@ARGV,'-r') if exists $options{r};
-unshift (@ARGV,'-i') if exists $options{i};
+my @opts = ('c','d','r','i','p');
+for my $opt (@opts) {
+ unshift (@ARGV,"-$opt") if exists $options{$opt};
+}
my $string = '';
-for (@ARGV) {
- $string .= " $_";
+for my $arg (@ARGV) {
+ $string .= " $arg";
}
system ("/usr/sbin/sboupgrade -oN $string");