summaryrefslogtreecommitdiffstats
path: root/slackware64-current/source/l/glibc/timezone-scripts/output-updated-timeconfig.sh
diff options
context:
space:
mode:
Diffstat (limited to 'slackware64-current/source/l/glibc/timezone-scripts/output-updated-timeconfig.sh')
-rwxr-xr-xslackware64-current/source/l/glibc/timezone-scripts/output-updated-timeconfig.sh11
1 files changed, 9 insertions, 2 deletions
diff --git a/slackware64-current/source/l/glibc/timezone-scripts/output-updated-timeconfig.sh b/slackware64-current/source/l/glibc/timezone-scripts/output-updated-timeconfig.sh
index a04f1b67f..268e4c6cc 100755
--- a/slackware64-current/source/l/glibc/timezone-scripts/output-updated-timeconfig.sh
+++ b/slackware64-current/source/l/glibc/timezone-scripts/output-updated-timeconfig.sh
@@ -34,19 +34,26 @@ cat $CWD/parts/00
echo "\"${zone}\" \" \" \\"
done
)
+# Don't list right/ and posix/ zones, as these are wrong choices for most
+# people. posix/ is just a duplicate of the normal zones, while right/ do
+# not include leap seconds. Anyone actually needing something from one of
+# those trees will have no problem selecting it by manually adjusting
+# /etc/localtime.
( cd $1
- find . -type f | xargs file | grep "timezone data" | cut -f 1 -d : | cut -f 2- -d / | sort | grep -v "^US/" | while read zone ; do
+ find . -type f | xargs file | grep "timezone data" | cut -f 1 -d : | cut -f 2- -d / | sort | grep -v "^US/" | grep -v "^posix/" | grep -v "^right/" | while read zone ; do
echo "\"${zone}\" \" \" \\"
done
)
cat $CWD/parts/02
+# US/ first:
( cd $1
find . -type f | xargs file | grep "timezone data" | cut -f 1 -d : | cut -f 2- -d / | sort | grep "^US/" | while read zone ; do
echo "${zone}"
done
)
+# Don't list right/ and posix/ zones:
( cd $1
- find . -type f | xargs file | grep "timezone data" | cut -f 1 -d : | cut -f 2- -d / | sort | grep -v "^US/" | while read zone ; do
+ find . -type f | xargs file | grep "timezone data" | cut -f 1 -d : | cut -f 2- -d / | sort | grep -v "^US/" | grep -v "^posix/" | grep -v "^right/" | while read zone ; do
echo "${zone}"
done
)