[LyX/2.3.x] Minor updates to distribution creation script.

Richard Kimberly Heck rikiheck at lyx.org
Tue Feb 25 00:08:41 UTC 2020


commit 235a1034c665d9f482816fe6e0cf11093399d01c
Author: Richard Kimberly Heck <rikiheck at lyx.org>
Date:   Mon Feb 24 19:27:22 2020 -0500

    Minor updates to distribution creation script.
---
 development/tools/lyx-build |   22 ++++++++++------------
 1 files changed, 10 insertions(+), 12 deletions(-)

diff --git a/development/tools/lyx-build b/development/tools/lyx-build
index 03623ba..086187c 100755
--- a/development/tools/lyx-build
+++ b/development/tools/lyx-build
@@ -19,13 +19,14 @@ if [ -z "$EDITOR" ]; then EDITOR=vi; fi
 MAKEOPTS="-j4";
 # Compile?
 COMPILE="YES";
+# Make patch file?
+PATCH="YES";
 
-PKGNUM="";
-while getopts ":Cm:p:" opt; do
+while getopts ":Cm:P" opt; do
   case $opt in
-    C )   COMPILE="";;
+    C )   COMPILE="";; # don't test compilation
     m )   MAKEOPTS="$OPTARG";;
-    p )   PKGNUM="$OPTARG";;
+    P )   PATCH="";; # don't build patch files
     \? )  echo "Unknown option $opt"; exit 1;;
   esac
 done
@@ -36,10 +37,6 @@ cd $SRCDIR/
 VERSION=$(head configure.ac | grep AC_INIT | perl -e 'while (<>) {m/AC_INIT\(LyX,([^,]+)/; print $1;}');
 VERSION_BASE="$VERSION";
 
-if [ -n "$PKGNUM" ]; then
-    VERSION="$VERSION-$PKGNUM";
-fi
-
 echo "This is version $VERSION.";
 echo -n "Ready to build source packages...";
 read
@@ -61,10 +58,6 @@ if ! $DEBUG make lyxdist; then
 fi
 
 echo "Packages created:";
-if [ -n "$PKGNUM" ]; then
-    $DEBUG mv lyx-$VERSION_BASE.tar.gz lyx-$VERSION.tar.gz;
-    $DEBUG mv lyx-$VERSION_BASE.tar.xz lyx-$VERSION.tar.xz;
-fi
 $DEBUG cp -v lyx-$VERSION.tar.{gz,xz} $BASE;
 
 echo -n "Ready to build signatures...";
@@ -108,6 +101,11 @@ FIRST=$(echo $VERSION_BASE | sed -e 's/[0-9]*$//');
 ORIGINAL=${FIRST}0;
 LAST=$FIRST$LAST;
 
+if [ -z "$PATCH" ]; then 
+	echo "Skipping patch files.";
+	exit 0; 
+fi
+
 if [ ! -d "$BASE/lyx-patch/" ]; then
 	$DEBUG mkdir "$BASE/lyx-patch/" || exit 1;
 fi


More information about the lyx-cvs mailing list