1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-05-19 03:56:14 +02:00
build/util/emptypkg.sh
David Oberhollenzer a646707dc0 Cleanup: move some utility functions to package skeleton
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
2020-04-16 15:16:58 +02:00

32 lines
444 B
Bash

apply_patches() {
local PATCH
for PATCH in $SCRIPTDIR/pkg/$PKGNAME/*.patch; do
if [ -f $PATCH ]; then
patch -p1 < $PATCH
fi
done
}
pkg_scan_dir() {
find -H "$1" -type d -printf "dir \"%p\" 0%m 0 0\\n" | tail -n +2
find -H "$1" -type l -printf "slink \"%p\" 0%m 0 0 %l\\n"
find -H "$1" -type f -printf "file \"%p\" 0%m 0 0\\n"
}
prepare() {
apply_patches
}
build() {
return
}
deploy() {
return
}
check_update() {
return
}