Replace script with justfile
This commit is contained in:
23
justfile
Normal file
23
justfile
Normal 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
|
@@ -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 ${@}
|
|
Reference in New Issue
Block a user