mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-13 17:20:55 +00:00
Something weird happened to the patch preamble.
This commit is contained in:
parent
3410f6cee9
commit
1200172d16
@ -19,8 +19,20 @@ MAKEOPTS="-j4";
|
|||||||
# Determine LyX version
|
# Determine LyX version
|
||||||
cd $SRCDIR/
|
cd $SRCDIR/
|
||||||
VERSION=$(head configure.ac | grep AC_INIT | perl -e 'while (<>) {m/AC_INIT\(LyX,([^,]+)/; print $1;}');
|
VERSION=$(head configure.ac | grep AC_INIT | perl -e 'while (<>) {m/AC_INIT\(LyX,([^,]+)/; print $1;}');
|
||||||
|
LASTNUM=$(echo $VERSION | sed -e 's/.*\.//');
|
||||||
|
LAST=$(($LASTNUM - 1));
|
||||||
|
FIRST=$(echo $VERSION | sed -e 's/[0-9]*$//');
|
||||||
|
ORIGINAL=${FIRST}0;
|
||||||
|
LAST=$FIRST$LAST;
|
||||||
|
NUMFIX="th";
|
||||||
|
if [ "$LASTNUM" = "1" ]; then
|
||||||
|
NUMFIX="st";
|
||||||
|
elif [ "$LASTNUM" = "2" ]; then
|
||||||
|
NUMFIX="nd";
|
||||||
|
fi
|
||||||
|
NUM="$LASTNUM$NUMFIX";
|
||||||
|
|
||||||
echo "This is version $VERSION.";
|
echo "This is version $VERSION, the $NUM maintenance release in the ${FIRST}x series.";
|
||||||
echo -n "Ready to build source packages...";
|
echo -n "Ready to build source packages...";
|
||||||
read
|
read
|
||||||
|
|
||||||
@ -76,12 +88,6 @@ else
|
|||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
LASTNUM=$(echo $VERSION | sed -e 's/.*\.//');
|
|
||||||
LAST=$(($LASTNUM - 1));
|
|
||||||
FIRST=$(echo $VERSION | sed -e 's/[0-9]*$//');
|
|
||||||
ORIGINAL=${FIRST}0;
|
|
||||||
LAST=$FIRST$LAST;
|
|
||||||
|
|
||||||
if [ ! -d "$BASE/lyx-patch/" ]; then
|
if [ ! -d "$BASE/lyx-patch/" ]; then
|
||||||
mkdir "$BASE/lyx-patch/" || exit 1;
|
mkdir "$BASE/lyx-patch/" || exit 1;
|
||||||
fi
|
fi
|
||||||
@ -118,13 +124,6 @@ echo -n "Please check the patch...";
|
|||||||
read
|
read
|
||||||
$EDITOR patch;
|
$EDITOR patch;
|
||||||
|
|
||||||
NUMFIX="th";
|
|
||||||
if [ "$LASTNUM" = "1" ]; then
|
|
||||||
NUMFIX="st";
|
|
||||||
elif [ "$LASTNUM" = "2" ]; then
|
|
||||||
NUMFIX="nd";
|
|
||||||
fi
|
|
||||||
NUM="$LASTNUM$NUMFIX";
|
|
||||||
cat $BASE/lyx-export/development/tools/patch-preamble | \
|
cat $BASE/lyx-export/development/tools/patch-preamble | \
|
||||||
sed -e "s/VERSION/$VERSION/; s/ORIGINAL/$ORIGINAL/; s/LAST/$LAST/; s/NUM/$NUM/;" >patch-preamble;
|
sed -e "s/VERSION/$VERSION/; s/ORIGINAL/$ORIGINAL/; s/LAST/$LAST/; s/NUM/$NUM/;" >patch-preamble;
|
||||||
echo -n "Please verify the patch preamble...";
|
echo -n "Please verify the patch preamble...";
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
This is patch-2.0.1, the 1st maintenance patch against LyX 2.0.0.
|
This is patch-VERSION, the NUMst maintenance patch against LyX ORIGINAL.
|
||||||
You need the source of lyx 2.0.0 to apply this patch.
|
You need the source of lyx LAST to apply this patch.
|
||||||
|
|
||||||
This patch should be applied like this
|
This patch should be applied like this
|
||||||
cd lyx-2.0.0
|
cd lyx-LAST
|
||||||
make distclean
|
make distclean
|
||||||
zcat patch-2.0.0.gz | patch -p1
|
zcat patch-VERSION.gz | patch -p1
|
||||||
and then LyX can be build as usual.
|
and then LyX can be build as usual.
|
||||||
|
|
||||||
If you want to skip the 'distclean' step, make sure to re-run configure.
|
If you want to skip the 'distclean' step, make sure to re-run configure.
|
||||||
|
Loading…
Reference in New Issue
Block a user