[pan/test2] Run make dist to avoid missing out on renamed files in EXTRA_DIST




commit 1b1cfe3b1136c9ebfca9371bc12a4c8f7906555c
Author: Petr Kovar <pkovar redhat com>
Date:   Mon Dec 6 19:12:33 2021 +0100

    Run make dist to avoid missing out on renamed files in EXTRA_DIST

 .gitlab-ci.yml | 9 ++++++---
 autogen.sh     | 5 +++++
 configure.ac   | 2 +-
 3 files changed, 12 insertions(+), 4 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1aa35af..b895354 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -21,9 +21,10 @@ build-ubuntu-gtk2:
         libgnutls28-dev
         yelp-tools
   script:
+    - mkdir _build
+    - cd _build
     - ./autogen.sh --without-gtk3 --with-gnutls --with-dbus --with-gmime-crypto --with-gtkspell 
--enable-libnotify --enable-gkr --enable-manual
-    - make
-    - make check
+    - make && make distcheck
 
 build-ubuntu-gtk3:
   image: ubuntu:rolling
@@ -49,6 +50,8 @@ build-ubuntu-gtk3:
         yelp-tools
 
   script:
+    - mkdir _build
+    - cd _build
     - ./autogen.sh --with-gtk3 --with-gnutls --with-dbus --with-gmime-crypto --with-gtkspell 
--enable-libnotify --enable-gkr --enable-manual
     - make
-    - make check
+    - make distcheck
diff --git a/autogen.sh b/autogen.sh
index 6f8dff2..13d5f56 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -14,6 +14,11 @@ cd $srcdir
     exit 1
 }
 
+# Allow for running make dist in gitlab-ci.yml
+#if [ ! -f "pan-git.version" ] ; then
+#  touch pan-git.version
+#fi
+
 # shellcheck disable=SC2016
 PKG_NAME=$(autoconf --trace 'AC_INIT:$1' configure.ac)
 
diff --git a/configure.ac b/configure.ac
index 7e61faf..a719895 100644
--- a/configure.ac
+++ b/configure.ac
@@ -33,7 +33,7 @@ if test ! -z $GIT_HASH; then
     GIT_REV="$GIT_HASH $GIT_REMOTE"
   fi
     echo $GIT_REV > pan-git.version
-  elif test -f pan-git.version ; then
+  elif test -s pan-git.version ; then
     GIT_REV=`cat pan-git.version`
   else
     GIT_REV="Unknown"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]