-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Nathan Chancellor <[email protected]>
- Loading branch information
1 parent
4bacd21
commit 14c44e3
Showing
2 changed files
with
39 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/usr/bin/env fish | ||
# SPDX-License-Identifier: MIT | ||
# Copyright (C) 2024 Nathan Chancellor | ||
|
||
function cbl_upd_lnx_c -d "Update $CBL_BLD_C to the latest versions" | ||
set targets $argv | ||
if test -z "$targets" | ||
set targets mainline stable | ||
end | ||
|
||
for target in $targets | ||
switch $target | ||
case m mainline | ||
set folder $CBL_BLD_C/linux | ||
|
||
if not test -d $folder | ||
mkdir -p (dirname $folder) | ||
git clone https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git $folder | ||
end | ||
|
||
git -C $folder pull | ||
or return | ||
case s stable | ||
set folder $CBL_BLD_C/linux-stable | ||
|
||
cbl_upd_stbl_wrktrs $folder | ||
|
||
for folder in $CBL_BLD_C/linux-stable-$CBL_STABLE_VERSIONS | ||
git -C $folder reset --hard @{u} | ||
end | ||
end | ||
end | ||
end |