diff options
author | davidovski <david@davidovski.xyz> | 2022-06-03 23:25:59 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-06-03 23:25:59 +0100 |
commit | ab421f4f139b45f7fc6ec14ae4b6b24542e4b7dd (patch) | |
tree | 6981e9931ba7e047150edd149b3121c3f5d8ba2c /xib.sh | |
parent | 30fa5253773e05e01e2830d039658b9635e9617a (diff) |
removed verbosity when removing packages
Diffstat (limited to 'xib.sh')
-rwxr-xr-x | xib.sh | 38 |
1 files changed, 31 insertions, 7 deletions
@@ -12,7 +12,8 @@ build_profile="/etc/xib_profile.conf" priv_key="xi.pem" -buildfiles="$xib_dir/buildfiles" +buildfiles="/home/david/docs/proj/xilinux/buildfiles" +#buildfiles="$xib_dir/buildfiles" seen="$xib_dir/seen" logs="$xib_dir/logs" chroot="$xib_dir/chroot" @@ -23,6 +24,18 @@ keychain="$xib_dir/keychain" quickfail=true +usage () { + cat << EOF +${LIGHT_RED}Usage: ${RED}xib [option] [package] +${BLUE}Avaiable Options: + ${BLUE}-d + ${LIGHT_CYAN}daemon; run as a daemon, automatically rebuilding all packages + ${BLUE}-p + ${LIGHT_CYAN}publish; publish packages in the stage to the repo +${RESET} +EOF +} + # publish any packages in the stage directory to the repo # publish_package () { @@ -96,7 +109,7 @@ build_package () { xibuild -v \ -C $1 \ - -d $stage \ + -o $stage \ -r $chroot \ -l $logs/$name.log \ -k $keychain/$priv_key \ @@ -198,7 +211,7 @@ xib_single () { && publish_package \ && { [ -e "$chroot/var/lib/xipkg/installed/$name" ] && { - xi -r $chroot -nyl remove $name + xi -r $chroot -nqyl remove $name } || true } } @@ -256,9 +269,20 @@ xibd () { [ "$#" = 0 ] && { xib_all } || { - [ "$1" = "-d" ] && - xibd || for x in $@; do - xib_single $x - done + case "$1" in + "-d") + xibd;; + "-p") + publish_package + ;; + "-h") + usage + ;; + *) + for x in $@; do + xib_single $x + done + ;; + esac } |