mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 14:02:52 +02:00
lib.sh: remove rmgit()
We don't need to call it from git.sh, because it's only being done when building a release anyway, and we already run rmgit when doing a release. The function itself is only two simple fx_ calls, so we can just do that from build_release(). Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -57,9 +57,6 @@ git_prep()
|
||||
dx_ fetch_submodule "$mdir/module.list"
|
||||
fi
|
||||
|
||||
[ "$_loc" != "$XBMK_CACHE/repo/$project" ] && \
|
||||
[ "$XBMK_RELEASE" = "y" ] && rmgit "$tmpgit"
|
||||
|
||||
[ "$_loc" = "${_loc%/*}" ] || x_ mkdir -p "${_loc%/*}"
|
||||
x_ mv "$tmpgit" "$_loc"
|
||||
}
|
||||
|
||||
@@ -29,12 +29,6 @@ mktarball()
|
||||
x_ tar -c "$1" | xz -T$XBMK_THREADS -9e > "$2" || err "mktarball2, $1"
|
||||
}
|
||||
|
||||
rmgit()
|
||||
{
|
||||
fx_ "x_ rm -Rf" x_ find "$1" -name ".git"
|
||||
fx_ "x_ rm -Rf" x_ find "$1" -name ".gitmodules"
|
||||
}
|
||||
|
||||
e()
|
||||
{
|
||||
es_t="e" && [ $# -gt 1 ] && es_t="$2"
|
||||
|
||||
+2
-1
@@ -37,7 +37,8 @@ build_release()
|
||||
x_ cd "$relsrcdir"
|
||||
|
||||
x_ ./mk -f
|
||||
rmgit .
|
||||
fx_ "x_ rm -Rf" x_ find . -name ".git"
|
||||
fx_ "x_ rm -Rf" x_ find . -name ".gitmodules"
|
||||
x_ mv src/docs docs
|
||||
) || err "can't create release files"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user