1
0
Fork 0

Disable patch_justfile as #458 is fixed

https://github.com/eza-community/eza/issues/458
This commit is contained in:
gardouille 2023-10-13 14:12:50 +02:00
parent b023ec978d
commit 9ab8de6faf
Signed by: gardouille
GPG Key ID: E759BAA22501AF32
1 changed files with 11 additions and 1 deletions

View File

@ -7,6 +7,7 @@ TARGET="$PWD"
export DEBIAN_FRONTEND
# dependencies {{{
dependencies() {
# Update system and install basic tools
apt-get update -yq && apt-get install -yq aptitude curl git patch wget
@ -20,14 +21,18 @@ dependencies() {
apt-get update -yq
aptitude --quiet --assume-yes install just
}
# }}}
# get_eza_sources {{{
get_eza_sources() {
# Clone Eza repo
cd "$(mktemp -d)"
git clone https://github.com/eza-community/eza
cd eza
}
# }}}
# Patch sample (from a PR…) {{{
patch_justfile() {
# If issue 458 is still open
gh_justfile_issue_opened=$(curl --location --no-progress-meter -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" \
@ -54,22 +59,27 @@ patch_justfile() {
echo "Case that is not supposed to happen !"
fi
}
# }}}
# build_eza_deb_package {{{
build_eza_deb_package() {
# Build
./devtools/deb-package.sh
}
# }}}
# copy builded package {{{
copy() {
TARGET_UID="$(stat --printf %u "$TARGET")"
TARGET_GID="$(stat --printf %g "$TARGET")"
install -o "$TARGET_UID" -g "$TARGET_GID" -t "$TARGET/target" eza_*.deb
}
# }}}
main() {
dependencies
get_eza_sources
patch_justfile
#patch_justfile
build_eza_deb_package
copy
}