aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBarry Jackson <barjac@mageia.org>2023-01-18 22:40:34 +0000
committerBarry Jackson <barjac@mageia.org>2023-01-18 22:40:34 +0000
commit7ea6f43fe84732c196ddc4ffe1f35a076e639fe9 (patch)
treebb9003a123b44db9bf12ac040d1056e40c10aabf
parent0cf214cc1938ab11295e32a6b7a4e28691df94ce (diff)
downloadremove-old-kernels-7ea6f43fe84732c196ddc4ffe1f35a076e639fe9.tar
remove-old-kernels-7ea6f43fe84732c196ddc4ffe1f35a076e639fe9.tar.gz
remove-old-kernels-7ea6f43fe84732c196ddc4ffe1f35a076e639fe9.tar.bz2
remove-old-kernels-7ea6f43fe84732c196ddc4ffe1f35a076e639fe9.tar.xz
remove-old-kernels-7ea6f43fe84732c196ddc4ffe1f35a076e639fe9.zip
- split line in rok to fix mk-pot
- remove obsolete code from mk-pot
-rwxr-xr-xmk-pot7
-rw-r--r--po/remove-old-kernels.pot10
-rwxr-xr-xremove-old-kernels3
3 files changed, 7 insertions, 13 deletions
diff --git a/mk-pot b/mk-pot
index eee8417..7ce93f3 100755
--- a/mk-pot
+++ b/mk-pot
@@ -8,13 +8,6 @@ grep -o '(i18n ".*)' remove-old-kernels|sed "s/(i18n/msgid /"|sed "s/.$//" > pot
rm -f pot-temp1
while read line; do
((linesin++))
- if echo "$line" | grep -q "\${plural}"; then
- echo "$line" |sed 's/\${plural}/s/' >> pot-temp1
- ((linesout++))
- echo "$line" |sed 's/\${plural}//' >> pot-temp1
- ((linesout++))
- continue
- fi
echo "$line" >> pot-temp1
((linesout++))
done < pot-temp
diff --git a/po/remove-old-kernels.pot b/po/remove-old-kernels.pot
index cbfb737..5120eac 100644
--- a/po/remove-old-kernels.pot
+++ b/po/remove-old-kernels.pot
@@ -7,7 +7,7 @@
msgid ""
msgstr "Project-Id-Version: remove-old-kernels\n"
"Report-Msgid-Bugs-To: \n"
- "POT-Creation-Date: 2023-01-15 13:05+0000\n"
+ "POT-Creation-Date: 2023-01-18 22:36+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -91,6 +91,9 @@ msgstr ""
msgid "Must be root to edit configuration"
msgstr ""
+msgid "Tap spacebar"
+msgstr ""
+
msgid "No such alternative configuration file:"
msgstr ""
@@ -100,7 +103,7 @@ msgstr ""
msgid "Bad input value"
msgstr ""
-msgid "Tap spacebar"
+msgid "Tap spacebar to exit"
msgstr ""
msgid "Welcome to 'remove-old-kernels' Interactive"
@@ -139,9 +142,6 @@ msgstr ""
msgid "Command that would be used"
msgstr ""
-msgid "Tap spacebar to exit"
-msgstr ""
-
msgid "Test mode is on - kernels will not be removed"
msgstr ""
diff --git a/remove-old-kernels b/remove-old-kernels
index f78a4a7..ab64f01 100755
--- a/remove-old-kernels
+++ b/remove-old-kernels
@@ -524,7 +524,8 @@ $(i18n "y/N/q (q=quit)") " -n 1 response
done
NK=$(ls /boot/vmlinuz*.mga[0-9] | wc -l)
OCCDISK2=$(df -B 1M -l --output=used / | tail -n1 | awk '{ print $1 }')
- echo -e "${HdBgCol} $(i18n "Gain"): $((OCCDISK1 - OCCDISK2)) MB - \
+ echo -e "${HdBgCol} $(i18n "Gain"):\
+$((OCCDISK1 - OCCDISK2)) MB - \
$(i18n "Kernels in") /boot/: ${NK} ${Normal}"
fi