UPD depot.xml

This commit is contained in:
Thomas Kuschel 2024-05-26 01:34:25 +02:00
parent b31d6faa46
commit 62b749fe61
3 changed files with 7 additions and 15 deletions

View File

@ -7,7 +7,7 @@
<license>GPL v2 +; see LICENSE.md</license> <license>GPL v2 +; see LICENSE.md</license>
<authorEmail>thomas@kuschel.at</authorEmail> <authorEmail>thomas@kuschel.at</authorEmail>
<authorUrl>https://kuschel.at</authorUrl> <authorUrl>https://kuschel.at</authorUrl>
<version>0.9.35</version> <version>0.9.15</version>
<description>COM_DEPOT_XML_DESCRIPTION</description> <description>COM_DEPOT_XML_DESCRIPTION</description>
<namespace path="src/">KW4NZ\Component\Depot</namespace> <namespace path="src/">KW4NZ\Component\Depot</namespace>
<install> <!-- Runs on install --> <install> <!-- Runs on install -->

View File

@ -11,10 +11,10 @@ echo # (optional) move to a new line
if [[ $REPLY =~ ^[YyJj]$ ]] if [[ $REPLY =~ ^[YyJj]$ ]]
then then
echo "Updating the version" echo "Updating the version"
patch=`xmllint -xpath 'string(//*[local-name()="version"])' depot.xml | rev | cut -f1 -d. | rev` # patch=`xmllint -xpath 'string(//*[local-name()="version"])' depot.xml | rev | cut -f1 -d. | rev`
echo "$patch" # echo "$patch"
patch=$((patch+1)) # patch=$((patch+1))
echo "$patch" # echo "$patch"
version=`xmllint -xpath 'string(//*[local-name()="version"])' depot.xml` version=`xmllint -xpath 'string(//*[local-name()="version"])' depot.xml`
major=`echo "$version" | cut -f1 -d.` major=`echo "$version" | cut -f1 -d.`
minor=`echo "$version" | cut -f2 -d.` minor=`echo "$version" | cut -f2 -d.`
@ -24,14 +24,7 @@ then
minor=$((minor)) minor=$((minor))
newversion="$major.$minor.$patch" newversion="$major.$minor.$patch"
echo "$newversion" echo "$newversion"
xmllint --shell depot.xml << EOF
#xml=$(xmllint --shell depot.xml << EOF
#-xpath 'string(//*[local-name()="version"]'
#set 1.2.3
#save -
#EOF
#)
xmllint --shell depot.xml << EOF
cd extension/version cd extension/version
set $newversion set $newversion
save save
@ -42,4 +35,3 @@ else
fi fi
mkdir -p zip mkdir -p zip
zip -q -r zip/depot.zip * -x .git/\* -x script/\* -x zip/\* zip -q -r zip/depot.zip * -x .git/\* -x script/\* -x zip/\*

BIN
zip/depot.zip (Stored with Git LFS)

Binary file not shown.