Replace script with justfile

This commit is contained in:
Sravan Balaji
2024-12-13 18:29:53 -05:00
parent e6d33a3be6
commit 47eb126ee0
2 changed files with 23 additions and 22 deletions

23
justfile Normal file
View File

@@ -0,0 +1,23 @@
set shell := ["bash", "-c"]
# List just commands by default
default:
@just --list
[doc('Generates a docker container that replicates "fresh" Gentoo installations
See https://wiki.gentoo.org/wiki/Ebuildtester
NOTE: `--overlay-dir` gets mounted to `/var/lib/overlays/<overlay-name>` inside the container
')]
test-ebuild:
ebuildtester \
--portage-dir /var/db/repos/gentoo/ \
--overlay-dir $(pwd) \
--rm \
--update \
--pull \
--install-basic-packages \
--threads $(nproc) \
--unstable \
--with-vnc \
--manual

View File

@@ -1,22 +0,0 @@
#!/usr/bin/env sh
# Generates a docker container that replicates "fresh" Gentoo installations
# See https://wiki.gentoo.org/wiki/Ebuildtester
#
# This script sets some baseline arguments, but additional arguments can be
# passed into the script as if you were using the `ebuildtester` directly
#
# NOTE: `--overlay-dir` gets mounted to `/var/lib/overlays/<overlay-name>`
# inside the container
ebuildtester \
--portage-dir /var/db/repos/gentoo/ \
--overlay-dir $(git rev-parse --show-toplevel) \
--rm \
--update \
--pull \
--install-basic-packages \
--threads $(nproc) \
--unstable \
--with-vnc \
--manual ${@}