diff options
Diffstat (limited to 'xibuild')
-rwxr-xr-x | xibuild/build_all.sh | 2 | ||||
-rwxr-xr-x | xibuild/make_infos.sh | 21 |
2 files changed, 18 insertions, 5 deletions
diff --git a/xibuild/build_all.sh b/xibuild/build_all.sh index 0faeb53..cf99f05 100755 --- a/xibuild/build_all.sh +++ b/xibuild/build_all.sh @@ -80,7 +80,7 @@ build_all () { if build_all; then - printf "\n${PASS}Built all packages!" + printf "\n${PASS}Built all packages!\n${RESET}" exit 0 else printf "${ERROR} Something went wrong!${NEUTRAL} Press enter to view recent log" diff --git a/xibuild/make_infos.sh b/xibuild/make_infos.sh index 08035a5..16cf642 100755 --- a/xibuild/make_infos.sh +++ b/xibuild/make_infos.sh @@ -41,14 +41,23 @@ list_line() { } -for repo in $(ls -d "$XIB_EXPORT"/repo/*); do +list=$(ls -d "$XIB_EXPORT"/repo/*) +total=$(echo $list | wc -w) +i=0 +for repo in $list; do file="$repo/packages.list" [ -e $file ] && rm $file touch $file - echo "Removed old package lists in $repo" + + hbar -T "removing old repos" $i $total + i=$((i+1)) done +hbar -t -T "removing old repos" $i $total -for pkg in $(ls "$XIB_EXPORT"/repo/*/*.xipkg); do +list=$(ls "$XIB_EXPORT"/repo/*/*.xipkg) +total=$(echo $list | wc -w) +i=0 +for pkg in $list; do name=$(basename -s ".xipkg" $pkg) repo=$(echo $pkg | rev | cut -d/ -f2 | rev) info_file="$XIB_EXPORT/repo/$repo/$name.xipkg.info" @@ -59,5 +68,9 @@ for pkg in $(ls "$XIB_EXPORT"/repo/*/*.xipkg); do get_info $pkg > $info_file sign $pkg >> $info_file list_line $pkg >> "$XIB_EXPORT"/repo/$repo/packages.list - echo "Enlisted $name to $info_file" + + hbar -T "generating info" $i $total + i=$((i+1)) done +hbar -t -T "generating info" $i $total +printf "${INFO}Created $i info files!\n" |