2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-12-21 23:00:06 -07:00

puke: clean up

This commit is contained in:
Dylan Araps 2019-05-16 10:25:08 +03:00
parent 8eeb7e8848
commit 3c76c8911d

18
puke
View File

@ -25,9 +25,6 @@ pkg_setup() {
read -r ver rel < version || die "Version file not found."
pkg=${name:=$1}\#$ver-$rel.tar.gz
mkdir -p "$src_dir" "$mak_dir" "$pkg_db" "$sys_dir" "$bin_dir" ||
die "Couldn't create directories at $PWD."
}
pkg_depends() {
@ -190,14 +187,13 @@ args() {
main() {
trap 'rm -rf -- "$mak_dir" "$pkg_dir"' EXIT INT
src_dir=$PWD/sources
mak_dir=$PWD/build
pkg_dir=$PWD/pkg
sys_dir=$PUKE_ROOT
bin_dir=$PWD/bin
rep_dir=$PWD/repo
pkg_db=$pkg_dir/var/db/puke
sys_db=$sys_dir/var/db/puke
mkdir -p "${src_dir:=$PWD/sources}" \
"${mak_dir:=$PWD/build}" \
"${pkg_db:=${pkg_dir:=$PWD/pkg}/var/db/puke}" \
"${sys_db:=${sys_dir:=$PUKE_ROOT}/var/db/puke}" \
"${bin_dir:=$PWD/bin}" \
"${rep_dir:=$PWD/repo}" ||
die "Couldn't create directories at $PWD."
args "$@"
}