aboutsummaryrefslogtreecommitdiff
path: root/slackware-upgrade-system
diff options
context:
space:
mode:
Diffstat (limited to 'slackware-upgrade-system')
-rw-r--r--slackware-upgrade-system23
1 files changed, 20 insertions, 3 deletions
diff --git a/slackware-upgrade-system b/slackware-upgrade-system
index 89b2cca..7b49742 100644
--- a/slackware-upgrade-system
+++ b/slackware-upgrade-system
@@ -1,4 +1,20 @@
#!/bin/sh
+# slackware-upgrade-system - full upgrade of a Slackware installation
+# Copyright (C) 2019 Sergey Poznyakoff.
+#
+# Slackware-upgrade-system is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as published
+# by the Free Software Foundation; either version 3, or (at your option)
+# any later version.
+#
+# Slackware-upgrade-system is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with slackware-upgrade-system. If not, see
+# <http://www.gnu.org/licenses/>.
set -e
@@ -129,7 +145,8 @@ if [ -z "$newversion" ]; then
exit 1
fi
-logfile=/var/log/slackware-upgrade-system-$VERSION-$newversion.log
+logstem=/var/log/slackware-upgrade-system-$VERSION-$newversion
+logfile=$logstem.log
# Check if pkgdir exists and contains the necessary files and directories
pkgdir=$rootdir/slackware64
@@ -190,7 +207,7 @@ fi
installed_list=/tmp/installed.list.$$
avail_list=/tmp/avail.list.$$
candidates=
-remove_list=/tmp/remove.list
+remove_list=$logstem.removed
ls /var/log/packages |\
sed -r -e 's/-[^-]+-(i386|x86(_64)?|arm|noarch|fw)-[[:digit:]]+(_.*)?//' |\
@@ -304,7 +321,7 @@ fi
echo "$0: upgrade finished; see $logfile for details"
-conffiles=/var/log/slackware-upgrade-system-$VERSION-$newversion.conffiles
+conffiles=$logstem.conffiles
find /etc /usr/lib*/ /usr/share/vim -name "*.new" 2>/dev/null | \
sort > $conffiles
if [ ! -s "$conffiles" ]; then

Return to:

Send suggestions and report system problems to the System administrator.