1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-09-28 09:09:49 +02:00
build/util/emptypkg.sh

32 lines
444 B
Bash
Raw Normal View History

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
}