You are not logged in.
Pages: 1
Dear ab,
with commit 5d53eb7c91ee894dc6a3faf3ce4b425a18e0d238 dated April 14th the build number of mormot.commit.inc has been reset from 2.0.200 to 2.0.1 instead of 2.0.201.
Has this been done intentionally?
Best regards and have a good Easter weekend!
Paul
Offline
You are right: it was probably a mistake from my part, when preparing the commit.
Should be fixed now by https://github.com/synopse/mORMot2/commit/dbd90aba
Offline
Happened again
Offline
So it sounds like a bug in the bash interpreter, I am afraid...
https://github.com/synopse/mORMot2/blob … /commit.sh
I confirm there is a bug in our script:
abouchez@tisab:~/dev/github/mORMot2$ ./commit.sh
VERS=199'
V2=199
committed 2.0.200 as https://github.com/synopse/mORMot2/commit/2e19dfcd
abouchez@tisab:~/dev/github/mORMot2$ ./commit.sh
VERS=
./commit.sh: line 5: -2: substring expression < 0
I don't get why '2.0.200' is not parsed properly, whereas '2.0.199' is - the last '0' char is making an issue with sed...
Has anyone any clue?
Offline
Update:
I have replaced the bash evaluation by a two lines python sub function.
See https://github.com/synopse/mORMot2/commit/40dd0526
Sounds safer now.
Bash is just a brain eater...
Offline
I found it way easier to just write little pascal programs in fpc then trying to understand some bash, awk, seed or regex crap ...
You can execute external programs with little effort using TProcess, https://wiki.freepascal.org/Executing_E … s#TProcess.
I haven't had any problems so far using this method.
Last edited by pvn0 (2022-04-20 05:47:01)
Offline
Bash was a native solution: I wanted at least to try and learn...
What I learn is that I should stay away from bash, because I don't know enough of it for sure.
Writing the Python lines was fun, on the contrary. Object orientation made it easy to find how to write what I wanted to achieve.
Offline
Pages: 1