Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #12903: Build error on AIX, empty list of man page to compress #1613

Conversation

amousset
Copy link
Member

@Normation-Quality-Assistant
Copy link
Contributor

OK, merging this PR

@Normation-Quality-Assistant Normation-Quality-Assistant merged commit 500b866 into Normation:branches/rudder/4.3 Jul 11, 2018
@@ -225,7 +225,7 @@ install: build $(INSTALL_DEPS) install-cfengine initial-promises initial-ncf rud
find $(DESTDIR)/opt/rudder/share/man/man3 -name "*.3" -exec rm {} \; || true
# Compress man pages
find $(DESTDIR)/opt/rudder/share/man -type f ! -name '*.gz' -exec gzip -9 {} \;
for i in $( find $(DESTDIR)/opt/rudder/share/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
[ $(find $(DESTDIR)/opt/rudder/share/man -type l | wc -l ) -gt 0 ] && for i in $( find $(DESTDIR)/opt/rudder/share/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done || true
Copy link
Member

@VinceMacBuche VinceMacBuche Jul 11, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be replaced by

find $(DESTDIR)/opt/rudder/share/man -type l -exec sh -c 'ln -s $(readlink {}) {}.gz' \; -delete

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants