diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2019-09-14 16:07:55 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2019-09-14 16:08:54 +0200 |
commit | d05caaafef647cd57b68cfc5dd53a687717dfa44 (patch) | |
tree | ce9074a813ffe89a0e9d516d65c6cedbe107bd5c | |
parent | a70967e1745459a37ff1c3637c20505f7a9a3a7b (diff) | |
download | slackupgrade-d05caaafef647cd57b68cfc5dd53a687717dfa44.tar.gz slackupgrade-d05caaafef647cd57b68cfc5dd53a687717dfa44.tar.bz2 |
Treat first argument as the name of the Slackware distribution directory
-rw-r--r-- | slackware-upgrade-system | 2 | ||||
-rw-r--r-- | slackware-upgrade-system.8 | 14 |
2 files changed, 4 insertions, 12 deletions
diff --git a/slackware-upgrade-system b/slackware-upgrade-system index 7ba002b..98d9bf0 100644 --- a/slackware-upgrade-system +++ b/slackware-upgrade-system @@ -87,7 +87,7 @@ function upgrade_package() { fi } -while getopts "ad:hknq:s:vy" OPTION +while getopts "ahknq:s:vy" OPTION do case $OPTION in a) install_all=y;; diff --git a/slackware-upgrade-system.8 b/slackware-upgrade-system.8 index 94d3b14..6d2c8b8 100644 --- a/slackware-upgrade-system.8 +++ b/slackware-upgrade-system.8 @@ -22,9 +22,9 @@ slackware\-upgrade\-system \- do a full upgrade of a Slackware installation .na \fBslackware\-upgrade\-system\fR\ [\fB\-anqvy\fR]\ - [\fB\-d \fIDIRECTORY\fR]\ [\fB\-k \fIFILE\fR]\ - [\fB\-s \fISERIES\fR] + [\fB\-s \fISERIES\fR]\ + [\fIDIRECTORY\fR] .ad .hy .SH DESCRIPTION @@ -37,7 +37,7 @@ another server via NFS, or simply download the distribution from .hy By default, the script expects to find the distribution in the \fB/root/slackware\fR directory. You can -specify another directory using the \fB\-d\fR command line option. +supply another directory as the argument to the program. .PP When started, the program first verifies that it runs with root privileges on a Slackware installation and determines the current @@ -104,14 +104,6 @@ files will be stored in file .B \-a Install all series except \fBkde*\fR. .TP -\fB\-d \fIDIRECTORY\fR -Look for slackware distribution in \fIDIRECTORY\fR. It must be the -top-level directory of a Slackware installation image, containing the -\fBANNOUNCE.\fIVERSION\fR file and the \fBslackware64\fR (or -\fBslackware\fR) directory with the Slackware package series. -.sp -The default is \fB/root/slackware\fR. -.TP .B \-h Display a short help summary and exit. .TP |