summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-03-05 11:07:22 +0000
committerdavidovski <david@davidovski.xyz>2022-03-05 11:07:22 +0000
commitd1554844d27bd6f623f2161ce8ae3b202ec88737 (patch)
tree9a70b9b922b509b1cbe75adb2946628ebf7b2029
parent3d3511a9ce2eba02b4156618922b2ded02272307 (diff)
added local files
-rwxr-xr-xxibuild/build_all.sh1
-rwxr-xr-xxibuild/build_package.sh9
-rw-r--r--xibuild/build_profile6
3 files changed, 14 insertions, 2 deletions
diff --git a/xibuild/build_all.sh b/xibuild/build_all.sh
index a84d90f..9c3d7cc 100755
--- a/xibuild/build_all.sh
+++ b/xibuild/build_all.sh
@@ -39,7 +39,6 @@ build_package () {
if [ -f "$buildfile" ]; then
printf "${INFO}%s\n${RESET}" $name
-
./build_package.sh $buildfile || return 1
# install the package it exists
diff --git a/xibuild/build_package.sh b/xibuild/build_package.sh
index 40c0e02..fb4069e 100755
--- a/xibuild/build_package.sh
+++ b/xibuild/build_package.sh
@@ -82,6 +82,14 @@ fetch_source () {
# download additional files
if [ "$#" != 0 ]; then
for url in $@; do
+ case $url in
+ http*)
+ ;;
+ *)
+ url="file://${XIB_BUILDFILES}/extra/$url"
+ ;;
+ esac
+
local name=$(basename $url)
curl -SsL $url > $src_dir/$name
done
@@ -229,6 +237,5 @@ build_pkg () {
# import all of the functions and constants in the build file, so we know what to do
. $BUILDFILE
-
package_exists || build_pkg
diff --git a/xibuild/build_profile b/xibuild/build_profile
index 2129265..dd25cd0 100644
--- a/xibuild/build_profile
+++ b/xibuild/build_profile
@@ -1,3 +1,9 @@
+apply_patches () {
+ for p in *.patch; do
+ echo "Applying $p"
+ patch -Np1 -i $p
+ done
+}
export JOBS=$(grep "processor" /proc/cpuinfo | wc -l)
export HOME=/root