Commit 2882e731 authored by David Spencer's avatar David Spencer

dusk.SlackBuild: Fixes for 4.19.

If the stable branch doesn't exist, checkout the mainline tag.
Another fixup for wacky quoting in the upstream Makefile.
parent 0a5a092e
......@@ -98,10 +98,10 @@ if [ ! -d $CWD/linux-stable/.git ] ; then
exit 1
fi
cd $CWD/linux-stable
git checkout -f origin/$KERNBRANCH 1>/dev/null
git checkout -f origin/$KERNBRANCH 1>/dev/null || git checkout -f v$KERNSERIES 1>/dev/null
# Get $VERSION, $PATCHLEVEL, $SUBLEVEL, $EXTRAVERSION and $NAME from kernel source Makefile
head -10 Makefile | grep -E '^VERSION|^PATCHLEVEL|^SUBLEVEL|^EXTRAVERSION|^NAME' | sed -e 's/ *= */="/' -e 's/$/"/' > $TMP/versionvars
head -10 Makefile | grep -E '^VERSION|^PATCHLEVEL|^SUBLEVEL|^EXTRAVERSION|^NAME' | sed -e 's/"//g' -e 's/ *= */="/' -e 's/$/"/' > $TMP/versionvars
. $TMP/versionvars
rm $TMP/versionvars
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment