diff --git a/dist.sh b/dist.sh new file mode 100755 index 0000000..3caeb50 --- /dev/null +++ b/dist.sh @@ -0,0 +1,13 @@ +#!/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