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
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
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...";
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