3 <_name>Generic JavaScript</_name>
4 <_description>A generic minimal and flat project</_description>
5 <icon>terminal-logo.png</icon>
6 <category>JS</category>
7 <required-program>automake</required-program>
8 <required-program>autoconf</required-program>
9 <required-program>make</required-program>
12 <page name="basic" _label="Basic information" _description="General Project Information">
13 <property type="string" name="Name" _label="Project Name:" _description="project name" default="foobar-sample" summary="yes" restriction="filename" mandatory="yes"/>
14 <property type="string" name="Author" _label="Author:" _description="" default="[+UserName+]" mandatory="yes"/>
15 <property type="string" name="Email" _label="Email address:" _description="" default="[+EmailAddress+]" mandatory="no"/>
16 <property type="string" name="Version" _label="Version:" default="0.1" mandatory="yes"/>
19 <page name="options" _label="Project options" _description="Options for project build system">
20 <property type="directory" name="Destination" _label="Destination:" _description="" default='[+AnjutaProjectDirectory+]/[+(string-downcase (get "Name"))+]' mandatory="yes" exist="no" summary="yes"/>
21 [+INCLUDE "licenses.tpl"+]
22 <property type="hidden" name="NameUpper" default='[+(string-upcase (get "Name"))+]'/>
23 <property type="hidden" name="NameLower" default='[+(string-downcase (get "Name"))+]'/>
24 <property type="hidden" name="NameCUpper" default='[+(string-append (if (~~* (get "Name") "[0-9]") "_" "") (string->c-name! (string-substitute (string-upcase (get "Name")) " " "_")))+]'/>
25 <property type="hidden" name="NameCLower" default='[+(string->c-name! (string-substitute (string-downcase (get "Name")) " " "_"))+]'/>
26 <property type="hidden" name="NameHLower" default='[+(string-substitute (string->c-name! (string-downcase (get "Name"))) " " "-")+]'/>
30 <directory source="js_minimal" destination="[+Destination+]">
31 <file source="Makefile.am.tpl" destination="Makefile.am"/>
32 <file source="autogen.sh" executable="yes"/>
33 <file source="configure.ac.tpl" destination="configure.ac"/>
34 <file source="project.anjuta" destination="[+NameHLower+].anjuta"/>
36 <directory source="js_minimal" destination="[+Destination+]">
37 <directory source="src" destination="src">
38 <file source="main.js" executable="yes"/>
39 <file source="Makefile.am.tpl" destination="Makefile.am"/>
42 <directory source="licenses" destination="[+Destination+]">
43 <file source="[+License+].txt" destination="COPYING"/>
48 <open file="[+Destination+]/[+NameHLower+].anjuta"/>