summaryrefslogtreecommitdiff
path: root/build-repo.sh
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 /build-repo.sh
parentde8a8b833737548b7c9648c0be9a1da34b2d2f80 (diff)
added support for filecount and package size to repo
Diffstat (limited to 'build-repo.sh')
-rwxr-xr-xbuild-repo.sh3
1 files changed, 1 insertions, 2 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
}