diff --git a/README.md b/README.md index 0ee9b80..2f50972 100644 --- a/README.md +++ b/README.md @@ -40,16 +40,10 @@ git clone --depth 1 https://github.com/t2linux/t2linux-fedora-kernel cd t2linux-fedora-kernel ``` -Pick the package you want to build (`t2linux-config`, `t2linux-repo`, `t2linux-config`, or `kernel`): - -``` -export PACKAGE="packagenamehere" -``` - Then run the build container, which has dependencies already installed. The packages will be in the `_output` directory: ``` -podman run -it -v "$PWD":/repo -e PACKAGE ghcr.io/t2linux/fedora-dev:latest /repo/build-packages.sh +podman run -it -v "$PWD":/repo ghcr.io/t2linux/fedora-dev:latest /repo/build-packages.sh ``` ## Credits diff --git a/build-packages.sh b/build-packages.sh index d00b56e..6c84970 100755 --- a/build-packages.sh +++ b/build-packages.sh @@ -1,6 +1,12 @@ #!/usr/bin/bash source /repo/util.sh +if [[ -z "$PACKAGE" ]]; then + PACKAGE="" + echo "Available packages: t2linux-config, t2linux-repo, t2linux-config, or kernel" + read -p "Name of package to build: " PACKAGE +fi + cd /repo if [ "$PACKAGE" == "kernel" ]; then @@ -8,4 +14,4 @@ if [ "$PACKAGE" == "kernel" ]; then fi cd /repo/$PACKAGE -build_package $PACKAGE.spec \ No newline at end of file +build_package $PACKAGE.spec