2 ## Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 ## Copyright (C) 2010-2010 - DIGITEO - Bruno JOFRET
4 ## Copyright (C) 2013 - Scilab Enterprises - Calixte DENIZET
6 ## This file must be used under the terms of the CeCILL.
7 ## This source file is licensed as described in the file COPYING, which
8 ## you should have received as part of this distribution. The terms
9 ## are also available at
10 ## http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
17 echo "Usage: $0 --java|--C <PropertiesFile> <OuputFile>"
35 echo "-- Building includes/graphicObjectProperties.java --"
37 echo "package org.scilab.modules.graphic_objects.graphicObject;" >> $OutFile
39 echo "public class GraphicObjectProperties {" >> $OutFile
42 awk 'BEGIN {num=0} (NF > 0) {printf " public static final int %s = %d;\n", $1, num; num++}' < $PropertiesFile >> $OutFile
50 echo "-- Building GraphicObjectProperties.h --"
52 echo "#ifndef __GRAPHIC_OBJECT_PROPERTIES_H__" >> $OutFile
53 echo "#define __GRAPHIC_OBJECT_PROPERTIES_H__" >> $OutFile
56 awk 'BEGIN {num=0} (NF > 0) {printf "#define %s %d\n", $1, num; num++}' < $PropertiesFile >> $OutFile
59 echo "#endif /* !__GRAPHIC_OBJECT_PROPERTIES_H__ */" >> $OutFile
65 echo " * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab" >> $OutFile
66 echo " * Copyright (C) 2010-2010 - DIGITEO - Bruno JOFRET" >> $OutFile
68 echo " * This file must be used under the terms of the CeCILL." >> $OutFile
69 echo " * This source file is licensed as described in the file COPYING, which" >> $OutFile
70 echo " * you should have received as part of this distribution. The terms" >> $OutFile
71 echo " * are also available at" >> $OutFile
72 echo " * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt" >> $OutFile
74 echo " */" >> $OutFile
79 echo " * -=- This is a generated file, please do not edit by hand -=-" >> $OutFile
80 echo " * -=- Please see properties definitions in -=-" >> $OutFile
81 echo " * -=- SCI/modules/graphic_objects/src/scripts/propertiesMap.properties -=-" >> $OutFile
82 echo " */" >> $OutFile