1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-05-17 03:06:12 +02:00
build/util/build_package.sh

26 lines
468 B
Bash
Raw Normal View History

build_package() {
found="yes"
for f in $SUBPKG; do
if [ ! -f "$REPODIR/${f}.pkg" ]; then
found="no"
break
fi
done
if [ "x$found" == "xyes" ]; then
return
fi
rm -rf "$SYSROOT" "$PKGBUILDDIR" "$PKGDEPLOYDIR"
mkdir -p "$SYSROOT" "$PKGBUILDDIR" "$PKGDEPLOYDIR"
run_pkg_command "set_scene"
run_pkg_command "download"
run_pkg_command "build"
run_pkg_command "deploy"
run_pkg_command "package"
rm -rf "$SYSROOT" "$PKGBUILDDIR" "$PKGDEPLOYDIR"
}