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 <property type="list" name="License" _label="License" _description="Select code license" default="GPL" editable="no">
22 <item name="GPL" _label="General Public License (GPL)"/>
23 <item name="LGPL" _label="Lesser General Public License (LGPL)"/>
24 <item name="BSD" _label="Berkeley Software Distribution License (BSD)"/>
25 <item name="None" _label="No license"/>
27 <property type="hidden" name="NameUpper" default='[+(string-upcase (get "Name"))+]'/>
28 <property type="hidden" name="NameLower" default='[+(string-downcase (get "Name"))+]'/>
29 <property type="hidden" name="NameCUpper" default='[+(string->c-name! (string-substitute (string-upcase (get "Name")) " " "_"))+]'/>
30 <property type="hidden" name="NameCLower" default='[+(string->c-name! (string-substitute (string-downcase (get "Name")) " " "_"))+]'/>
31 <property type="hidden" name="NameHLower" default='[+(string-substitute (string->c-name! (string-downcase (get "Name"))) " " "-")+]'/>
35 <directory source="js_minimal" destination="[+Destination+]">
36 <file source="Makefile.am.tpl" destination="Makefile.am"/>
37 <file source="autogen.sh" executable="yes"/>
38 <file source="configure.ac.tpl" destination="configure.ac"/>
39 <file source="project.anjuta" destination="[+NameHLower+].anjuta"/>
41 <directory source="js_minimal" destination="[+Destination+]">
42 <directory source="src" destination="src">
43 <file source="main.js" executable="yes"/>
44 <file source="Makefile.am.tpl" destination="Makefile.am"/>
47 <directory source="licenses" destination="[+Destination+]">
48 <file source="[+License+]" destination="COPYING"/>
53 <open file="[+Destination+]/[+NameHLower+].anjuta"/>