summaryrefslogtreecommitdiffstats
path: root/debian/manpages-fr.links
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 19:43:30 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 19:43:30 +0000
commit1ea98fe7f3071127fc788e3792cfb2f0ca2994c0 (patch)
tree9cd95c33f563425cf18bbba3b7a06c8d7c0743bc /debian/manpages-fr.links
parentAdding upstream version 4.22.0. (diff)
downloadmanpages-l10n-1ea98fe7f3071127fc788e3792cfb2f0ca2994c0.tar.xz
manpages-l10n-1ea98fe7f3071127fc788e3792cfb2f0ca2994c0.zip
Adding debian version 4.22.0-1.debian/4.22.0-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-xdebian/manpages-fr.links37
1 files changed, 37 insertions, 0 deletions
diff --git a/debian/manpages-fr.links b/debian/manpages-fr.links
new file mode 100755
index 00000000..b4c76076
--- /dev/null
+++ b/debian/manpages-fr.links
@@ -0,0 +1,37 @@
+#!/bin/sh
+
+pdir=usr/share/man/fr/
+pb=debian/tmp/
+
+while IFS=" " read -r f01 f02
+do
+ # Determine the directory part, with and without fancy additions (like "ssl")
+ # dsname=$(dirname $f01)
+ # dtname=$(dirname $f02)
+ dsnameshort=$(dirname $f01|awk '{print substr($0,1,4)}')
+ dtnameshort=$(dirname $f02|awk '{print substr($0,1,4)}')
+
+ # echo "INPUT $f01 $f02 $dsnameshort $dtnameshort"
+
+ # Decide, if the man pages is in the -dev package
+ if [ $dsnameshort = "man2" ] || [ $dsnameshort = "man3" ]; then
+ sdir=1
+ else
+ sdir=0
+ fi
+
+ # Decide, if the link is in the -dev package
+ if [ $dtnameshort = "man2" ] || [ $dtnameshort = "man3" ]; then
+ tdir=1
+ else
+ tdir=0
+ fi
+
+ # For now, only consider links *within* one package
+ if [ $sdir = 0 ] && [ $tdir = 0 ]; then
+ sfull=${pb}${pdir}${f01}
+ if [ -e $sfull ]; then
+ echo "${pdir}${f01} ${pdir}${f02}"
+ fi
+ fi
+done < upstream/debian-unstable/links.txt