Remove the /usr/share/doc/openssl-<version> dir before renaming

/usr/share/doc/openssl, otherwise it moves it as a subdirectory
This commit is contained in:
Pierre Labastie 2020-04-07 17:08:30 +00:00
parent 49e2745200
commit 709eb7470d

View file

@ -215,6 +215,10 @@ chapter6_Makefiles() {
done done
# Remove Bzip2 binaries before make install (LFS-6.2 compatibility) # Remove Bzip2 binaries before make install (LFS-6.2 compatibility)
sed -e 's@make install@rm -vf /usr/bin/bz*\n&@' -i chapter06$N/*-bzip2$N sed -e 's@make install@rm -vf /usr/bin/bz*\n&@' -i chapter06$N/*-bzip2$N
# Remove openssl-<version> from /usr/share/doc (LFS-9.x), because
# otherwise the mv command creates an openssl directory.
sed -e 's@mv -v@rm -rfv /usr/share/doc/openssl-*\n&@' \
-i chapter06$N/*-openssl$N
fi fi
echo "${tab_}${GREEN}Processing... ${L_arrow}Chapter6$N ( CHROOT ) ${R_arrow}" echo "${tab_}${GREEN}Processing... ${L_arrow}Chapter6$N ( CHROOT ) ${R_arrow}"