gnuastro-commits
[Top][All Lists]
Advanced

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

[gnuastro-commits] master 69242da: Minor modifications in developer-buil


From: Mohammad Akhlaghi
Subject: [gnuastro-commits] master 69242da: Minor modifications in developer-build script
Date: Thu, 6 Sep 2018 05:46:04 -0400 (EDT)

branch: master
commit 69242da3bf53abe5a610657ca4e22cae86a7228f
Author: Mohammad Akhlaghi <address@hidden>
Commit: Mohammad Akhlaghi <address@hidden>

    Minor modifications in developer-build script
    
    After a while of working with this script, some minor points were modified
    to help in its usability and in saving time:
    
     - The installation step is now moved after the building of the PDF and
       tarball. This was done because the building takes long and sometimes you
       go onto other things and by the time you come back, the time-out for
       `sudo' (necessary for the installation) has expired. So you will have to
       build the PDF and tarball manually. With this correction, if you forget
       to give the password to sudo in time, then the only manual step
       necessary is to run `sudo make install'.
    
     - The PDF manual (when built) is now copied in the top build directory to
       help in moving it (with the tarball) to some other directory.
---
 developer-build | 26 ++++++++++++++------------
 1 file changed, 14 insertions(+), 12 deletions(-)

diff --git a/developer-build b/developer-build
index 63b622f..220ea47 100755
--- a/developer-build
+++ b/developer-build
@@ -435,25 +435,18 @@ fi
 
 
 
-# If requested, also run 'sudo make install'.
-if [ x$install = x1 ]; then
-    sudo make install -kj$jobs
-fi
-
-
-
-
-
-# Make the tarball and PDF for distribution.
+# Make the tarball and PDF for distribution. Then put a copy of the PDF in
+# the top build directory for easy usage later.
 if [ x$dist = x1 ]; then
     make dist-lzip pdf
+    cp doc/gnuastro.pdf ./
 fi
 
 
 
 
 
-# Build a tarball, and upload it to the requested server.
+# Upload the tarball to the requested server.
 if [ x$upload = x1 ]; then
 
     # Get the base package name, and use it to make a generic tarball
@@ -464,5 +457,14 @@ if [ x$upload = x1 ]; then
     mv *.tar.lz $base"-latest.tar.lz"
 
     # Copy the files to the given URL (must include folders).
-    scp $base"-latest.tar.lz" doc/$base.pdf $url
+    scp $base"-latest.tar.lz" $base.pdf $url
+fi
+
+
+
+
+
+# If requested, run 'sudo make install'.
+if [ x$install = x1 ]; then
+    sudo make install -kj$jobs
 fi



reply via email to

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