]> granicus.if.org Git - pgbouncer/commitdiff
Travis CI: Shell fix
authorPeter Eisentraut <peter@eisentraut.org>
Tue, 27 Aug 2019 20:22:24 +0000 (22:22 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Wed, 28 Aug 2019 19:09:07 +0000 (21:09 +0200)
Newer cd versions apparently complain about too many arguments, which
was a problem here, since pgbouncer-* expands to both the directory
name and the tarball name.

.travis.yml

index a5c2167243cc101d7f06525744a8727d4bb0777a..129f3d7d556123909b9f4a7acc71bf019ebe5001 100644 (file)
@@ -46,6 +46,7 @@ script: |
   etc/optscan.sh
   ./autogen.sh
   ./configure --prefix=$HOME/install --enable-cassert --enable-werror --without-cares $configure_args
+  PACKAGE_VERSION=$(sed -n 's/PACKAGE_VERSION = //p' config.mak)
   make
   make -C test
   (
@@ -69,8 +70,8 @@ script: |
   )
   make install
   make dist
-  tar -x -f pgbouncer-*.tar.gz
-  cd pgbouncer-*
+  tar -x -f pgbouncer-${PACKAGE_VERSION}.tar.gz
+  cd pgbouncer-${PACKAGE_VERSION}/
   ./configure --prefix=$HOME/install2 --enable-werror --without-cares $configure_args
   make
   make install