Project

General

Profile

« Previous | Next » 

Revision 04e26a3f

Added by Xavier Thirioux almost 9 years ago

answer to #feature 50:
- arrows are now factorized out and become part of include
as files arrow.h and arrow.c
- no more arrows in generated code
- compiling and linking arrow.c is only necessary
in case of dynamic allocation
- version now includes installation prefix (for the standard lib)
and svn number

git-svn-id: https://cavale.enseeiht.fr/svn/lustrec/lustre_compiler/trunk@180 041b043f-8d7c-46b2-b46e-ef0dd855326e

View differences:

svn_version.sh
3 3
version=`svn info | awk -v ver="UNKNOWN" -F ":" '/R?vision/ { ver=$2 } END { print ver }' | tr -d " "`
4 4

  
5 5
filename=version.ml
6
prefix=$1
6 7

  
7
echo "Generating version number in file \"${filename}\" ..."
8
echo "Generating version information in file \"${filename}\" ..."
8 9

  
9 10
echo "" > src/${filename}
10 11
echo "(* Version file generated by Oasis *)" >> src/${filename}
11 12
echo "" >> src/${filename}
12 13
echo "let number = \"${version}\"" >> src/${filename}
14
echo "version number: ${version}"
15
echo "" >> src/${filename}
16
echo "let prefix = \"${prefix}\"" >> src/${filename}
17
echo "installation path prefix: ${prefix}"
18
echo "... done"

Also available in: Unified diff