Explorar el Código

Script that changes all places with versions, changed to 0.12.0-pre

Herbert Vojčík hace 11 años
padre
commit
b2c0ff7db0

+ 17 - 0
bin/setversion.sh

@@ -0,0 +1,17 @@
+#!/bin/sh
+cd `dirname "$0"`
+cd ../st
+rm -f *.js
+cp Kernel-Infrastructure.st Kernel-Infrastructure.st.bak
+sed -e "/^version\$/,/^\! \!\$/ s/\^ '[0-9]\+\.[0-9]\+\.[0-9]\+\(-pre\)\?'\$/^ '$1'/" Kernel-Infrastructure.st.bak >Kernel-Infrastructure.st
+rm Kernel-Infrastructure.st.bak
+cd ..
+bin/amberc -d -l Kernel-Objects,Kernel-Collections Kernel-Infrastructure.st
+cd st
+mv *.js ../js
+cd ..
+for F in *.json; do
+  cp $F $F.bak
+  sed -e "s/\"version\": \"[0-9]\+\.[0-9]\+\.[0-9]\+\(-pre\)\?\"/\"version\": \"$1\"/" $F.bak >$F
+  rm $F.bak
+done

+ 1 - 1
js/Kernel-Infrastructure.deploy.js

@@ -1764,7 +1764,7 @@ selector: "version",
 fn: function (){
 var self=this;
 return smalltalk.withContext(function($ctx1) { 
-return "0.11.0";
+return "0.12.0-pre";
 }, function($ctx1) {$ctx1.fill(self,"version",{},smalltalk.Smalltalk)})},
 messageSends: []}),
 smalltalk.Smalltalk);

+ 2 - 2
js/Kernel-Infrastructure.js

@@ -2346,10 +2346,10 @@ category: 'accessing',
 fn: function (){
 var self=this;
 return smalltalk.withContext(function($ctx1) { 
-return "0.11.0";
+return "0.12.0-pre";
 }, function($ctx1) {$ctx1.fill(self,"version",{},smalltalk.Smalltalk)})},
 args: [],
-source: "version\x0a\x09\x22Answer the version string of Amber\x22\x0a\x09\x0a\x09^ '0.11.0'",
+source: "version\x0a\x09\x22Answer the version string of Amber\x22\x0a\x09\x0a\x09^ '0.12.0-pre'",
 messageSends: [],
 referencedClasses: []
 }),

+ 1 - 1
st/Kernel-Infrastructure.st

@@ -777,7 +777,7 @@ reservedWords
 version
 	"Answer the version string of Amber"
 	
-	^ '0.11.0'
+	^ '0.12.0-pre'
 ! !
 
 !Smalltalk methodsFor: 'accessing amd'!