]> git.lyx.org Git - features.git/blobdiff - development/tools/lyx-build
Cmake tests: Correct BATCH_compare-test test.
[features.git] / development / tools / lyx-build
index 1c61b2f18192d83aded2353dbf79400147395828..f4b1c7ca969fa3b3f0a9b86c1967c1f9d28e0924 100755 (executable)
@@ -2,7 +2,7 @@
 # This script builds a maintainance LyX distribution according to 
 # the procedure outlined at:
 #   http://wiki.lyx.org/Devel/ReleaseProcedure
-# It also includes several other tests, to make sure the packages
+# It also includes several other tests, to make sure the package
 # works as it should.
 
 #DEBUG=echo;
 # Where we will do our work
 BASE="/cvs/lyx/lyx-release";
 # Where our git repository lives
-SRCDIR="/cvs/lyx/lyx-stable";
+SRCDIR="/cvs/lyx/lyx-stable";    # stable
+DEVDIR="/cvs/lyx/lyx-devel";     # devel
+
+BRANCH=$(git status | head -n1 | sed -e 's/On branch //');
+if [ $BRANCH == "master" ]; then
+       SRCDIR="$DEVDIR";
+fi
+
 # editor 
 if [ -z "$EDITOR" ]; then EDITOR=vi; fi
 
@@ -81,7 +88,7 @@ $DEBUG mkdir "$BASE/lyx-build/";
 $DEBUG cd "$BASE/lyx-build/";
 
 echo "Building distribution...";
-$DEBUG "$BASE/lyx-export/configure" --enable-build-type=rel --enable-qt5
+$DEBUG "$BASE/lyx-export/configure" --enable-build-type=rel
 if ! $DEBUG make dist; then
   echo "Couldn't make distribution!";
   exit 1;
@@ -100,8 +107,8 @@ $DEBUG ln lyx-$PKG_VERSION.tar.{gz,xz} $BASE/ || exit 1;
 echo -n "Ready to build signatures...";
 read
 
-$DEBUG gpg -b lyx-$VERSION.tar.gz
-$DEBUG gpg -b lyx-$VERSION.tar.xz
+$DEBUG gpg -b lyx-$PKG_VERSION.tar.gz
+$DEBUG gpg -b lyx-$PKG_VERSION.tar.xz
 
 echo "Signatures created:"
 $DEBUG ln lyx-$VERSION.tar.*.sig $BASE;