summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Fontenelle2018-01-14 17:44:28 -0200
committerRafael Fontenelle2018-01-14 17:44:28 -0200
commit7b2f9a81c128a5023e50093a2019024cfb06ff09 (patch)
treea0b13e1e81c3589342a3b24dc84039f65e621655
parent8f30e0b1e4e54dea929afe461ca454768df4b95e (diff)
downloadaur-7b2f9a81c128a5023e50093a2019024cfb06ff09.tar.gz
getsizes.sh: adapt output for python-markdown syntax
-rwxr-xr-xgetsizes.sh15
1 files changed, 10 insertions, 5 deletions
diff --git a/getsizes.sh b/getsizes.sh
index c149482521b..eeaa357c6c8 100755
--- a/getsizes.sh
+++ b/getsizes.sh
@@ -6,14 +6,19 @@ test -f PKGBUILD && source PKGBUILD || exit 1
test -d src/$_name || exit 1
test -d pkg/$pkgname/usr/share/ddnet/data/types/ || exit 1
-echo -e "Sizes as of $pkgver :\n"
-du -shD $pkgname-$pkgver-$pkgrel-$arch.pkg.tar.xz
-du -sh src/$_name | cut -d' ' -f1
-echo ""
+BLK=" "
+echo -e "${BLK} Sizes as of $pkgver\n "
+
+echo -e "${BLK} Source code repository:"
+echo -e "${BLK} $(du -sh src/$_name | cut -d' ' -f1)\n "
+
+echo -e "${BLK} Package:"
+echo -e "${BLK} $(du -shD $pkgname-$pkgver-$pkgrel-$arch.pkg.tar.xz)\n "
cd pkg/$pkgname
+echo -e "${BLK} Server types packaged:"
for type in $(ls usr/share/ddnet/data/types/); do
- du -sh usr/share/ddnet/data/types/$type
+ echo -e "${BLK} $(du -sh usr/share/ddnet/data/types/$type)"
done