gnuastro-commits
[Top][All Lists]
Advanced

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

[gnuastro-commits] master 540fa15 1/2: Bootstarp: Author list can be gen


From: Mohammad Akhlaghi
Subject: [gnuastro-commits] master 540fa15 1/2: Bootstarp: Author list can be generated with no tags
Date: Wed, 11 Nov 2020 18:55:07 -0500 (EST)

branch: master
commit 540fa156e859c1664d562850a7742234a7148692
Author: Zahra Sharbaf <zahra.sharbaf2@gmail.com>
Commit: Mohammad Akhlaghi <mohammad@akhlaghi.org>

    Bootstarp: Author list can be generated with no tags
    
    Until now, if the git history didn't contain tags the bootstrapping failed
    because of 'git --describe' crashed. Also when 'genauthors' crashed the
    bootstrapping would continue and crash much later.
    
    With this commit, an 'if' statement has been defined so when the
    'genauthors' crashed, the bootstrapping stops. Also to fix the probem with
    git an '--always' was added.
    
    I also recognized that when the bootstrapping is manually aborted, a
    temporary file is created so I added to '.gitignore'.
---
 .gitignore     | 1 +
 bootstrap.conf | 7 ++++++-
 genauthors     | 2 +-
 3 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/.gitignore b/.gitignore
index 7bd0b12..26b30b4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -102,6 +102,7 @@ install-sh
 aclocal.m4
 confdefs.h
 conftest.c
+.bootstrap*
 astconvertt
 astconvolve
 test-driver
diff --git a/bootstrap.conf b/bootstrap.conf
index 2a184f6..30ecc14 100644
--- a/bootstrap.conf
+++ b/bootstrap.conf
@@ -58,7 +58,12 @@
 # necessary in autoreconf. Recall that we have to satisfy the GNU
 # Coding Standards which require this file's existence and autoreconf
 # will complain if its not here.
-./genauthors ./
+if ./genauthors ./ ; then
+  echo "AUTHORS file created."
+else
+  echo "AUTHORS file NOT created."
+  exit 1
+fi
 
 
 
diff --git a/genauthors b/genauthors
index a8ff608..c8c1f6d 100755
--- a/genauthors
+++ b/genauthors
@@ -84,7 +84,7 @@ fi
 if [ -f "$1/.version" ]; then
     gnuastroversion="Gnuastro "$(cat "$1/.version")
 else
-    gnuastroversion=$(git --git-dir=$1/.git describe)
+    gnuastroversion=$(git --git-dir=$1/.git describe --always)
 fi
 
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]