UPD depot.xml
This commit is contained in:
@ -11,10 +11,10 @@ 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"
|
||||
# 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.`
|
||||
@ -24,14 +24,7 @@ then
|
||||
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
|
||||
xmllint --shell depot.xml << EOF
|
||||
cd extension/version
|
||||
set $newversion
|
||||
save
|
||||
@ -42,4 +35,3 @@ else
|
||||
fi
|
||||
mkdir -p zip
|
||||
zip -q -r zip/depot.zip * -x .git/\* -x script/\* -x zip/\*
|
||||
|
||||
|
Reference in New Issue
Block a user