1
0
Fork 0
mirror of https://github.com/Yetangitu/owncloud-apps.git synced 2025-10-02 14:49:17 +02:00
nextcloud-apps/dist.sh
2014-12-13 14:28:37 +01:00

13 lines
368 B
Bash
Executable file

#!/bin/sh
#
# creates dist files for all updated apps
ls */appinfo/info.xml|while read f;do
app=$(echo $f|cut -d '/' -f 1)
version=$(xml2json < $f|jq -r '.info.version["$t"]')
if [ ! -f dist/${app}-${version}.tar.gz ]; then
find ${app} -print0 -type f|tar cvzf dist/${app}-${version}.tar.gz --null -T -
else
echo ${app} version ${version} up to date
fi
done