From 2ae56d18b58380b5a041461f3533849eb7ea902f Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Fri, 20 Sep 2019 19:33:29 +0200 Subject: [PATCH] build: Avoid tar --exclude=. * build-aux/install.sh.in: Only use `tar --exclude=' if we also have .go files compiled by Guile. --- build-aux/install.sh.in | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/build-aux/install.sh.in b/build-aux/install.sh.in index 508434e2..042e45f4 100644 --- a/build-aux/install.sh.in +++ b/build-aux/install.sh.in @@ -77,13 +77,15 @@ else cp $_v ChangeLog ${DESTDIR}${docdir} fi +if test -f module/mescc.go; then + __exclude_go=--exclude='*.go' + __exclude_scm=--exclude='*.scm' +fi mkdir -p $DESTDIR$libdir mkdir -p $DESTDIR$pkgdatadir -# rm -f $(find lib -type f -a -executable) -# rm -f $(find scaffold -type f -a -executable) tar -cf- -C ${srcdir} include lib/$mes_cpu-mes | tar -${v}xf- -C $DESTDIR$prefix if test -z "$srcdest"; then - tar -cf- --exclude='*.go' module | tar -${v}xf- -C $DESTDIR$pkgdatadir + tar -cf- $__exclude_go module | tar -${v}xf- -C $DESTDIR$pkgdatadir else tar -cf- -C ${srcdest} module | tar -${v}xf- -C $DESTDIR$pkgdatadir fi @@ -97,8 +99,8 @@ fi mkdir -p ${DESTDIR}${guile_site_dir} mkdir -p ${DESTDIR}${guile_site_ccache_dir} -tar -cf- -C ${srcdest}module --exclude='*.go' . | tar -${v}xf- -C ${DESTDIR}${guile_site_dir} -tar -cf- -C module --exclude='*.scm' . | tar -${v}xf- -C ${DESTDIR}${guile_site_ccache_dir} +tar -cf- -C ${srcdest}module $__exclude_go . | tar -${v}xf- -C ${DESTDIR}${guile_site_dir} +tar -cf- -C module $__exclude_scm . | tar -${v}xf- -C ${DESTDIR}${guile_site_ccache_dir} if test -f doc/mes.info; then mkdir -p ${DESTDIR}${infodir}