[Pkg-gnupg-commit] [gpgme] 99/132: python: Improve build system integration.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Wed Apr 26 01:01:34 UTC 2017


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch experimental
in repository gpgme.

commit a4201035fdc050f337a6b9f520c8ddbb569e2eb4
Author: Justus Winter <justus at g10code.com>
Date:   Tue Mar 14 11:22:28 2017 +0100

    python: Improve build system integration.
    
    * lang/python/Makefile.am: Use 'set -e' when chaining shell commands
    together in rules.
    
    Signed-off-by: Justus Winter <justus at g10code.com>
---
 lang/python/Makefile.am | 21 ++++++++++-----------
 1 file changed, 10 insertions(+), 11 deletions(-)

diff --git a/lang/python/Makefile.am b/lang/python/Makefile.am
index 2724d86..d91ead9 100644
--- a/lang/python/Makefile.am
+++ b/lang/python/Makefile.am
@@ -47,20 +47,19 @@ COPY_FILES_GPG = \
 # For VPATH builds we need to copy some files because Python's
 # distutils are not VPATH-aware.
 copystamp: $(COPY_FILES) $(COPY_FILES_GPG)
-	for F in $(COPY_FILES) $(COPY_FILES_GPG) ; do if [ $$F -nt $@ ]; then echo $F ; fi ; done
-	for VERSION in $(PYTHON_VERSIONS); do \
-	  $(MKDIR_P)              python$${VERSION}-gpg/gpg && \
-	  cp -R $(COPY_FILES)     python$${VERSION}-gpg && \
-	  cp setup.py             python$${VERSION}-gpg && \
-	  cp gpg/version.py       python$${VERSION}-gpg/gpg && \
-	  ln -sf "$(abs_top_srcdir)/src/data.h" python$${VERSION}-gpg && \
-	  ln -sf "$(abs_top_builddir)/config.h" python$${VERSION}-gpg && \
+	set -e ; for VERSION in $(PYTHON_VERSIONS); do \
+	  $(MKDIR_P)              python$${VERSION}-gpg/gpg ; \
+	  cp -R $(COPY_FILES)     python$${VERSION}-gpg ; \
+	  cp setup.py             python$${VERSION}-gpg ; \
+	  cp gpg/version.py       python$${VERSION}-gpg/gpg ; \
+	  ln -sf "$(abs_top_srcdir)/src/data.h" python$${VERSION}-gpg ; \
+	  ln -sf "$(abs_top_builddir)/config.h" python$${VERSION}-gpg ; \
 	  cp -R $(COPY_FILES_GPG) python$${VERSION}-gpg/gpg ; \
 	done
 	touch $@
 
 all-local: copystamp
-	set $(PYTHONS); for VERSION in $(PYTHON_VERSIONS); do \
+	set -e ; set $(PYTHONS); for VERSION in $(PYTHON_VERSIONS); do \
 	  PYTHON="$$1" ; shift ; \
 	  cd python$${VERSION}-gpg && \
 	  CFLAGS="$(CFLAGS)" \
@@ -102,9 +101,9 @@ clean-local:
 
 install-exec-local:
 	rm -f install_files.txt
-	set $(PYTHONS); for VERSION in $(PYTHON_VERSIONS); do \
+	set -e ; set $(PYTHONS); for VERSION in $(PYTHON_VERSIONS); do \
 	  PYTHON="$$1" ; shift ; \
-	  cd python$${VERSION}-gpg && \
+	  cd python$${VERSION}-gpg ; \
 	  $$PYTHON setup.py install \
 	  --prefix $(DESTDIR)$(prefix) \
 	  --record files.txt \

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gpgme.git



More information about the Pkg-gnupg-commit mailing list