From 68aa55ec3a8f62aec42c236202feba1cf12e266e Mon Sep 17 00:00:00 2001 From: J Pipkin Date: Sun, 9 Sep 2012 11:00:35 -0500 Subject: converted sboinstall clean/distclean back to old way --- sboinstall | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/sboinstall b/sboinstall index 797c11a..fb8a225 100755 --- a/sboinstall +++ b/sboinstall @@ -22,18 +22,18 @@ sub show_usage () { print < \$help, 'version|v' => \$vers, - 'clean|c!' => \$clean, - 'distclean|d!' => \$distclean, + 'noclean|c=s' => \$noclean, + 'distclean|d=s' => \$distclean, 'noinstall|i' => \$no_install, 'jobs|j=s' => \$jobs, 'compat32|p' => \$compat32, @@ -64,16 +64,18 @@ GetOptions ( show_usage and exit 0 if $help; show_version and exit 0 if $vers; - show_usage and exit 0 unless exists $ARGV[0]; +$noclean = $noclean eq 'TRUE' ? 1 : 0; +$distclean = $distclean eq 'TRUE' ? 1 : 0; + # setup any options -unshift @ARGV, $clean ? '--noclean' : '-c'; -unshift @ARGV, $distclean ? '-d' : '--distclean'; -unshift @ARGV, '-n' if $no_install; -unshift @ARGV, '-i' if $non_int; -unshift @ARGV, '-R' if $no_reqs; +unshift @ARGV, $noclean ? '-cTRUE' : '-cFALSE'; +unshift @ARGV, $distclean ? '-dTRUE' : '-dFALSE'; +unshift @ARGV, '-i' if $no_install; unshift @ARGV, '-p' if $compat32; +unshift @ARGV, '-r' if $non_int; +unshift @ARGV, '-R' if $no_reqs; unshift @ARGV, "-j$jobs" if $jobs; system '/usr/sbin/sboupgrade', '-oN', @ARGV; -- cgit v1.2.3