mirror of
https://github.com/Yetangitu/owncloud-apps.git
synced 2025-10-02 14:49:17 +02:00
Added dist.sh script to create dist files
This commit is contained in:
parent
eb1c8f666e
commit
f4c2eccf58
1 changed files with 13 additions and 0 deletions
13
dist.sh
Executable file
13
dist.sh
Executable file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue