summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-01-07 22:30:44 +0000
committerdavidovski <david@davidovski.xyz>2022-01-07 22:30:44 +0000
commitf8fae05d3d4cf85af0a208dac25db435953b6971 (patch)
tree93be6dfe117d6bdbffc8a6dea471a73e8e093d3f
parentde8a8b833737548b7c9648c0be9a1da34b2d2f80 (diff)
added support for filecount and package size to repo
-rwxr-xr-xbuild-repo.sh3
-rwxr-xr-xxibuild2
2 files changed, 2 insertions, 3 deletions
diff --git a/build-repo.sh b/build-repo.sh
index d6200a3..6b1b1a2 100755
--- a/build-repo.sh
+++ b/build-repo.sh
@@ -129,7 +129,7 @@ generate-package-list () {
echo "" > packages.list
for file in $(ls -1 *.xipkg); do
- echo "$file $(md5sum $file)" >> packages.list
+ echo "$file $(md5sum $file | awk '{print $1}') $(du -s $file | awk '{print $1}') $(gzip -cd $file | tar -tvv | grep -c ^-)" >> packages.list
done;
cd -
}
@@ -150,7 +150,6 @@ add-additional () {
clean () {
rm -rf xipkgs
rm -rf logs
- chmod -R 777 tmp
rm -rf tmp
rm -rf xibuild.log
}
diff --git a/xibuild b/xibuild
index a9fad9b..1031dd3 100755
--- a/xibuild
+++ b/xibuild
@@ -156,7 +156,7 @@ xibuild () {
fi
printf "$INFO\tarchiving package...";
- tar -C $PKG_DEST -czf $PKG_FILE ./ >> $LOGFILE 2>&1 && printf "$PASS archived to $(du -sh $PKG_FILE | awk '{ print $1 }')\n" || return 1;
+ tar -C $PKG_DEST -cvzf $PKG_FILE ./ >> $LOGFILE 2>&1 && printf "$PASS archived to $(du -sh $PKG_FILE | awk '{ print $1 }')\n" || return 1;
# create info file