mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-18 04:22:15 +02:00
get.sh: allow force-pull via -F instead of -f
use of ./mk -F behaves the same as -f before the previous commit. this can be useful, during development when we want to update revisions. Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
+2
-1
@@ -232,7 +232,8 @@ try_git()
|
|||||||
x_ mv "$tmpgitcache" "$gitdest"
|
x_ mv "$tmpgitcache" "$gitdest"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if git -C "$gitdest" whatchanged "$7" 1>/dev/null 2>/dev/null; then
|
if git -C "$gitdest" whatchanged "$7" 1>/dev/null 2>/dev/null && \
|
||||||
|
[ "$forcepull" != "y" ]; then
|
||||||
# don't try to pull the latest changes if the given target
|
# don't try to pull the latest changes if the given target
|
||||||
# revision already exists locally. this saves a lot of time
|
# revision already exists locally. this saves a lot of time
|
||||||
# during release builds, and reduces the chance that we will
|
# during release builds, and reduces the chance that we will
|
||||||
|
|||||||
+6
-1
@@ -8,7 +8,7 @@ eval "`setvars "" xarch srcdir premake gnatdir xlang mode makeargs elfdir cmd \
|
|||||||
project target target_dir targets xtree _f release bootstrapargs mkhelper \
|
project target target_dir targets xtree _f release bootstrapargs mkhelper \
|
||||||
autoconfargs listfile autogenargs btype rev build_depend gccdir cmakedir \
|
autoconfargs listfile autogenargs btype rev build_depend gccdir cmakedir \
|
||||||
defconfig postmake mkhelpercfg dry dest_dir mdir cleanargs gccver gccfull \
|
defconfig postmake mkhelpercfg dry dest_dir mdir cleanargs gccver gccfull \
|
||||||
gnatver gnatfull do_make badhash badtghash tree`"
|
gnatver gnatfull do_make badhash badtghash tree forcepull`"
|
||||||
|
|
||||||
trees()
|
trees()
|
||||||
{
|
{
|
||||||
@@ -44,6 +44,11 @@ trees()
|
|||||||
do_make="n" # lets us know not to build anything
|
do_make="n" # lets us know not to build anything
|
||||||
dry=":"
|
dry=":"
|
||||||
;;
|
;;
|
||||||
|
-F) # same as -F, but don't skip git fetch/pull on cache
|
||||||
|
do_make="n" # lets us know not to build anything
|
||||||
|
dry=":"
|
||||||
|
forcepull="y"
|
||||||
|
;;
|
||||||
-s) mode="savedefconfig" ;;
|
-s) mode="savedefconfig" ;;
|
||||||
-l) mode="olddefconfig" ;;
|
-l) mode="olddefconfig" ;;
|
||||||
-n) mode="nconfig" ;;
|
-n) mode="nconfig" ;;
|
||||||
|
|||||||
Reference in New Issue
Block a user