mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
tools: fix generation script to support variable rebase suffix
This commit is contained in:
parent
94cffa28cd
commit
0efa45223c
@ -14,6 +14,8 @@ BRANCH="$1"
|
||||
while [ $# -gt 1 ]; do
|
||||
if [ "${2,,}" == "rebase" ]; then
|
||||
REBASE="_rebase"
|
||||
elif [[ ${2,,} =~ [_-]rebase ]]; then
|
||||
REBASE="$2"
|
||||
elif [[ ${2} =~ ^[0-9a-f]*$ ]]; then
|
||||
BASEREV="${2}"
|
||||
fi
|
||||
@ -24,10 +26,11 @@ usage()
|
||||
{
|
||||
local me="$(basename $0)"
|
||||
|
||||
echo "Usage: ${me} <major.minor>|<major.minor.patch> [rebase] [baserev]"
|
||||
echo "Usage: ${me} <major.minor>|<major.minor.patch> [[_-]rebase] [baserev]"
|
||||
echo
|
||||
echo "Example: 4.4 (for rpi-4.4.y) or 4.4.6 - specifying an exact kernel version avoids fetching the upstream repo"
|
||||
echo " 4.4 rebase - use rpi-4.4.y_rebase branch"
|
||||
echo " 4.4 -rebase - use rpi-4.4.y-rebase branch"
|
||||
echo " 4.6-rc6"
|
||||
echo " 4.7 523d939ef98fd712632d93a5a2b588e477a7565e"
|
||||
echo " 4.7.0"
|
||||
|
Loading…
x
Reference in New Issue
Block a user