Merge #92704: gcc: Improve manpage symlinks

This commit is contained in:
Vladimír Čunát 2020-10-18 11:56:39 +02:00
commit 5aca3498a6
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -287,7 +287,12 @@ postInstall() {
done
# Two identical man pages are shipped (moving and compressing is done later)
ln -sf gcc.1 "$out"/share/man/man1/g++.1
for i in "$out"/share/man/man1/*g++.1; do
if test -e "$i"; then
man_prefix=`echo "$i" | sed "s,.*/\(.*\)g++.1,\1,"`
ln -sf "$man_prefix"gcc.1 "$i"
fi
done
}
genericBuild