Browse Source

Utils: release correct 2 digits version numbers

remotes/origin/cmake
Romain Goffe 13 years ago
parent
commit
19e3e581db
  1. 6
      utils/release.sh

6
utils/release.sh

@ -35,9 +35,9 @@ then
fi; fi;
echo "new version : $MAIN.$MAJOR.$MINOR" echo "new version : $MAIN.$MAJOR.$MINOR"
#update version field in tmpl files #update version field in tmpl files
sed -i "s/\"[0-9].[0-9].[0-9]\"/\"$MAIN.$MAJOR.$MINOR\"/" templates/patacrep.tmpl sed -i "s/\"[0-9]+.[0-9]+.[0-9]+\"/\"$MAIN.$MAJOR.$MINOR\"/" templates/patacrep.tmpl
sed -i "s/\"[0-9].[0-9].[0-9]\"/\"$MAIN.$MAJOR.$MINOR\"/" templates/ancient.tmpl sed -i "s/\"[0-9]+.[0-9]+.[0-9]+\"/\"$MAIN.$MAJOR.$MINOR\"/" templates/ancient.tmpl
sed -i "s/\"[0-9].[0-9].[0-9]\"/\"$MAIN.$MAJOR.$MINOR\"/" templates/patacrep-en.tmpl sed -i "s/\"[0-9]+.[0-9]+.[0-9]+\"/\"$MAIN.$MAJOR.$MINOR\"/" templates/patacrep-en.tmpl
else else
echo "keeping release version" echo "keeping release version"
fi; fi;

Loading…
Cancel
Save