File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,15 @@ TOTAL_ORDER=${TOTAL_ORDER#ROOT}
5353CRATE_VERSION=$( grep ' ^version =' Cargo.toml | head -n1 | cut -d ' "' -f2)
5454
5555set -e
56- for dir in src/uucore_procs/ src/uucore/ src/uu/stdbuf/src/libstdbuf/ tests/uutests/ fuzz/uufuzz/; do
56+ CORE_DIRS=" src/uucore_procs/ src/uucore/ src/uu/stdbuf/src/libstdbuf/ tests/uutests/ fuzz/uufuzz/"
57+ CORE_COUNT=$( echo $CORE_DIRS | wc -w)
58+ UTIL_COUNT=$( echo $TOTAL_ORDER | wc -w)
59+ TOTAL_COUNT=$(( CORE_COUNT + UTIL_COUNT + 1 ))
60+ CURRENT=0
61+
62+ for dir in $CORE_DIRS ; do
63+ CURRENT=$(( CURRENT + 1 ))
64+ echo " [$CURRENT /$TOTAL_COUNT ] Processing: $dir "
5765 (
5866 cd " $dir "
5967 CRATE_NAME=$( grep ' ^name =' " Cargo.toml" | head -n1 | cut -d ' "' -f2)
@@ -68,6 +76,8 @@ for dir in src/uucore_procs/ src/uucore/ src/uu/stdbuf/src/libstdbuf/ tests/uute
6876done
6977
7078for p in $TOTAL_ORDER ; do
79+ CURRENT=$(( CURRENT + 1 ))
80+ echo " [$CURRENT /$TOTAL_COUNT ] Processing: $p "
7181 (
7282 cd " src/uu/$p "
7383 CRATE_NAME=$( grep ' ^name =' " Cargo.toml" | head -n1 | cut -d ' "' -f2)
@@ -80,5 +90,7 @@ for p in $TOTAL_ORDER; do
8090 )
8191done
8292
93+ CURRENT=$(( CURRENT + 1 ))
94+ echo " [$CURRENT /$TOTAL_COUNT ] Processing: main coreutils crate"
8395# shellcheck disable=SC2086
8496cargo publish $ARG
You can’t perform that action at this time.
0 commit comments