diff --git a/depot.xml b/depot.xml
index fd037e5..0ae8dee 100644
--- a/depot.xml
+++ b/depot.xml
@@ -7,7 +7,7 @@
GPL v2 +; see LICENSE.md
thomas@kuschel.at
https://kuschel.at
- 0.9.14
+ 0.9.35
COM_DEPOT_XML_DESCRIPTION
KW4NZ\Component\Depot
@@ -44,36 +44,16 @@
-->
-
diff --git a/script/zipdepot b/script/zipdepot
index 5be8a82..87f3dca 100755
--- a/script/zipdepot
+++ b/script/zipdepot
@@ -3,5 +3,43 @@
# this is a script file to generate a zip package from this source:
cd "$(dirname "$0")"
cd ..
+# now we are at the depot directory
+# if there is a file named depot.xml, we ask to increase the version with
+
+read -p "Do you want to update/increase the patch (last) version number? (y/N)" -n 1 -r
+echo # (optional) move to a new line
+if [[ $REPLY =~ ^[YyJj]$ ]]
+then
+ echo "Updating the version"
+ patch=`xmllint -xpath 'string(//*[local-name()="version"])' depot.xml | rev | cut -f1 -d. | rev`
+ echo "$patch"
+ patch=$((patch+1))
+ echo "$patch"
+ version=`xmllint -xpath 'string(//*[local-name()="version"])' depot.xml`
+ major=`echo "$version" | cut -f1 -d.`
+ minor=`echo "$version" | cut -f2 -d.`
+ patch=`echo "$version" | cut -f3 -d.`
+ echo "$version"
+ patch=$((patch+1))
+ minor=$((minor))
+ newversion="$major.$minor.$patch"
+ echo "$newversion"
+
+#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
+set $newversion
+save
+EOF
+
+else
+ echo "Keep the version"
+fi
mkdir -p zip
-zip -r zip/depot.zip * -x .git/\* -x script/\* -x zip/\*
+zip -q -r zip/depot.zip * -x .git/\* -x script/\* -x zip/\*
+
diff --git a/zip/depot.zip b/zip/depot.zip
index 0328d0f..a8e305a 100644
--- a/zip/depot.zip
+++ b/zip/depot.zip
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:c60c9d2c585f5834b80a7b3a8b6ede3d007a842b1f3ba719fec9e0a25a19fcbc
-size 88209
+oid sha256:5de270b6eb8ce29ce75e33fa5b3ccf3a4d21e795044209f9196da676bf83151f
+size 88205