+$(PYTHON_BOOTSTRAP): Makefile | $(all_dirfiles)
+ set -e; \
+ module='$(subst -,_,$(notdir $@))'; \
+ { echo '#!/usr/bin/python'; \
+ echo '# This file is automatically generated, do not edit!'; \
+ echo "# Edit ganeti.client.$$module instead."; \
+ echo; \
+ echo '"""Bootstrap script for L{ganeti.client.'"$$module"'}"""'; \
+ echo; \
+ echo '# pylint: disable-msg=C0103'; \
+ echo '# C0103: Invalid name'; \
+ echo; \
+ echo 'import sys'; \
+ echo "from ganeti.client import $$module"; \
+ echo; \
+ echo '# Temporarily alias commands until bash completion'; \
+ echo '# generator is changed'; \
+ echo "if hasattr($$module, \"commands\"):"; \
+ echo " commands = $$module.commands"; \
+ echo; \
+ echo 'if __name__ == "__main__":'; \
+ echo " sys.exit($$module.Main())"; \
+ } > $@
+ chmod u+x $@
+