Browse Source

Opam version is now being updated

Leo 9 years ago
parent
commit
b4403baa4f
2 changed files with 3 additions and 2 deletions
  1. 1 1
      opam
  2. 2 1
      version_set.sh

+ 1 - 1
opam

@@ -1,6 +1,6 @@
 opam-version: "1.2"
 name: "oclaunch"
-version: "git-dev"
+version: "0.2.2.1-dev"
 maintainer: "Leo <leowzukw@vmail.me>"
 authors: "Leo <leowzukw@vmail.me>"
 license: "CeCILL"

+ 2 - 1
version_set.sh

@@ -13,10 +13,11 @@ new_version=$1
 # Print what will be done
 echo "Put" $new_version "instead of" $new_version
 
-# Replace in the three files : VERSION, _oasis, src/oclaunch.ml
+# Replace in the 4 files : VERSION, _oasis, src/oclaunch.ml, opam
 echo $new_version > VERSION
 sed -i -e "s/Version:     .*/Version:     $new_version/" _oasis
 sed -i -e "s/\\(let version_number = \"\\).*\\(\";;\\)/\\1$new_version\\2/" src/oclaunch.ml
+sed -i -e "s/^version: \".*\"$/version: \"$new_version\"/" opam
 
 # Update oasis
 oasis setup