Fix update script for new build process
This change updates the update script to support the new build process.
This commit is contained in:
parent
33e4754e26
commit
55fcab9f40
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue