summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-19 00:59:11 +0100
committerdavidovski <david@davidovski.xyz>2022-05-19 00:59:11 +0100
commit6e5be3eecef3e48f52d4088bae98d8f6cae57ef4 (patch)
treeb5e69754e608cd113915e5ae2185b8b61e4ae45d
parent7b365e3bef46ef5d102b38b04f51434260bd4957 (diff)
added xibd
-rwxr-xr-xxib.sh19
-rw-r--r--xibd.sh2
2 files changed, 13 insertions, 8 deletions
diff --git a/xib.sh b/xib.sh
index 5129bef..091d876 100755
--- a/xib.sh
+++ b/xib.sh
@@ -33,7 +33,7 @@ publish_package () {
for xipkg in $xipkgs; do
local name=$(basename $xipkg ".xipkg")
- local filecount=$(gzip -cd $xipkg | tar -tvv | grep -cv ^d)
+ local filecount=$(tar -tvvf $xipkg | grep -cv ^d)
local checksum=$(sha512sum $xipkg | awk '{ print $1 }')
local size=$(stat -t $xipkg | cut -d" " -f2)
local deps=$(grep "^DEPS=" $xipkg.info | sed -rn 's/DEPS=(.*)/\1/p')
@@ -92,7 +92,7 @@ build_package () {
package_install () {
local name=$1
local xipkg=$2
- xipkg -lny -r $3 install $xipkg && printf "${PASS}${CHECKMARK}\n" || printf "${NEUTRAL}${CHECKMARK}\n"
+ xipkg -qlny -r $3 install $xipkg && printf "${PASS}${CHECKMARK}\n" || printf "${NEUTRAL}${CHECKMARK}\n"
}
# get the direct dependencies of a single package
@@ -142,7 +142,7 @@ xib_single () {
done
[ "${#missing}" != "0" ] && {
- printf "${RED}This package requires the following to be installed in order to build: ${LIGHT_RED}$missing\n"
+ printf "${RED}$name depends on these packages to be build before: ${LIGHT_RED}$missing\n"
return 1
}
@@ -161,7 +161,7 @@ xib_all () {
[ -f "$seen/$name.xibsum" ] && [ "$(cat "$seen/$name.xibsum")" = "$xibsum" ] && {
printf "${BLUE}$name${LIGHT_BLUE}...already built!\n"
} || {
- xib_single $name || return 1
+ xib_single $name
}
} || {
printf "${RED} could not find package for $name in $package $RESET\n"
@@ -192,10 +192,13 @@ build_order () {
}
xibd () {
- cd $buildfiles
- git pull
- cd $xib_dir
- xib_all
+ while true; do
+ cd $buildfiles
+ git pull
+ cd $xib_dir
+ xib_all
+ sleep 5
+ done
}
[ "$#" = 0 ] && {
diff --git a/xibd.sh b/xibd.sh
new file mode 100644
index 0000000..4d41fca
--- /dev/null
+++ b/xibd.sh
@@ -0,0 +1,2 @@
+. ./xib.sh && xibd
+