Fix update script for new build process

This change updates the update script to support the new build process.
This commit is contained in:
Fabian Mastenbroek 2021-04-22 14:16:09 +02:00
parent 33e4754e26
commit 55fcab9f40
No known key found for this signature in database
GPG key ID: 405FC6F81F0A7B85

View file

@ -39,7 +39,7 @@ done
# Fetch from Git repository # Fetch from Git repository
echo "Fetching $LINUX_TAG from Linux Git repository..." echo "Fetching $LINUX_TAG from Linux Git repository..."
git --git-dir $LINUX_REPOSITORY/.git fetch origin --depth 1 $LINUX_TAG git --git-dir $LINUX_REPOSITORY/.git fetch origin --depth 1 v$LINUX_TAG
git --git-dir $LINUX_REPOSITORY/.git checkout FETCH_HEAD git --git-dir $LINUX_REPOSITORY/.git checkout FETCH_HEAD
if [[ -z "$LINUX_VERSION" ]]; then if [[ -z "$LINUX_VERSION" ]]; then
@ -50,7 +50,7 @@ fi
echo "Using Linux $LINUX_VERSION." echo "Using Linux $LINUX_VERSION."
# Prepare Debian changelog # Prepare Debian changelog
sed -e "s/@KVNAME@/$LINUX_VERSION/g" -e "s/@KVMAJMIN@/$LINUX_VERSION_MAJOR.$LINUX_VERSION_MINOR/g" < debian/control.in > debian/control sed -e "s/@KVNAME@/$LINUX_VERSION/g" -e "s/@KVMAJMIN@/$LINUX_VERSION_MAJOR.$LINUX_VERSION_MINOR/g" < debian/templates/control.in > debian/control
LINUX_VERSION_MAJOR=$(echo $LINUX_VERSION | cut -d. -f1) LINUX_VERSION_MAJOR=$(echo $LINUX_VERSION | cut -d. -f1)
LINUX_VERSION_MINOR=$(echo $LINUX_VERSION | cut -d. -f2) LINUX_VERSION_MINOR=$(echo $LINUX_VERSION | cut -d. -f2)