💾 Archived View for dimension.sh › ~novaburst › 8dad34db.gmi captured on 2023-01-29 at 15:52:09. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-06-03)

-=-=-=-=-=-=-

Automating package builds

Authors: Nova[有線魔女] <novaburst@envs.net>

Date: 25 Jun, 2021

Out of boredom, while testing stuff on my local aports tree, I wrote a shell script to automate package builds , which is just a simple 'for' loop that does the actual job.

Basically so I wouldn't have to type the commands manually each time I wanted to build a package from my tree. Currently it's on experimental phase and shouldn't be used on production.

These lines below this text are the contents of the script , which kind of self-explanates itself. Currently only tested on the 'main' directory of the tree, mostly because there are barely any build scripts on the other directories.

'#!/bin/sh

for package in $(find . -type d | grep -v pkg | grep -v src); do

cd $package

abuild -r

cd $OLDPWD

done

'

makefiles to achieve automation