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

puke: simplify manifest.

This commit is contained in:
Dylan Araps 2019-05-13 16:42:19 +03:00
parent c94b05c717
commit f692587946
2 changed files with 10 additions and 15 deletions

13
puke
View File

@ -114,15 +114,10 @@ pkg_build() {
log "Sucessfully built $pkg."
}
pkg_manifest() (
cd "$pkg_dir"
_() { find . -mindepth 1 "$@" | sed 's/^\.//'; }
_ -not -type d > "$OLDPWD/manifest"
_ -type d | sort -r >> "$OLDPWD/manifest"
cp "$OLDPWD/manifest" "$pkg_dir/$dbs_dir/$name"
)
pkg_manifest() {
find "$pkg_dir" -mindepth 1 | sed "s|^$pkg_dir||" | sort -r > manifest
cp manifest "$pkg_dir/$dbs_dir/$name"
}
pkg_tar() {
cd "$bin_dir"

View File

@ -1,17 +1,17 @@
/usr/bin/shutdown
/usr/bin/hummingbird
/usr/bin/reboot
/var/db/puke/hummingbird/version
/var/db/puke/hummingbird/sources
/var/db/puke/hummingbird/manifest
/var/db/puke/hummingbird/checksums
/var/db/puke/hummingbird/build
/var/db/puke/hummingbird/version
/etc/rc.shutdown
/etc/rc.init
/var/db/puke/hummingbird
/var/db/puke
/var/db
/var
/usr/bin/shutdown
/usr/bin/reboot
/usr/bin/hummingbird
/usr/bin
/usr
/etc/rc.shutdown
/etc/rc.init
/etc