[anjuta] project-wizard: Fix make file project template
- From: Sebastien Granjoux <sgranjoux src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [anjuta] project-wizard: Fix make file project template
- Date: Thu, 10 Sep 2009 20:48:04 +0000 (UTC)
commit 3e9171529a5f24c51a6db9c6f31734f4a2f30716
Author: Sébastien Granjoux <seb sfo free fr>
Date: Thu Sep 10 22:23:43 2009 +0200
project-wizard: Fix make file project template
plugins/project-wizard/templates/mkfile.wiz | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/plugins/project-wizard/templates/mkfile.wiz b/plugins/project-wizard/templates/mkfile.wiz
index fc930ad..0e95afe 100644
--- a/plugins/project-wizard/templates/mkfile.wiz
+++ b/plugins/project-wizard/templates/mkfile.wiz
@@ -8,17 +8,17 @@
<page name="options" _label="Project options" _description="Project directory, output file etc.">
<property type="string" name="Name" _label="Project name:" _description="" default="foobar" mandatory="yes" restriction="filename" summary="yes"/>
- <property type="directory" name="Destination" _label="Project directory:" _description="" default="[+AnjutaProjectDirectory+]/[+(string-downcase (get "Name"))+]" mandatory="yes" exist="no" summary="yes"/>
+ <property type="directory" name="Destination" _label="Project directory:" _description="" default="[+AnjutaProjectDirectory+]/foobar" mandatory="yes" exist="no" summary="yes"/>
</page>
<content>
<directory source="mkfile" destination="[+Destination+]">
- <file destination="[+Destination+]/[+Name+].anjuta" source="project.anjuta"/>
- <file destination="[+Destination+]/[+Name+].c" source="src/main.c"/>
- <file destination="[+Destination+]/Makefile" source="src/Makefile.tpl"/>
+ <file destination="[+(string-substitute (string->c-name! (string-downcase (get "Name"))) " " "-")+].anjuta" source="project.anjuta"/>
+ <file destination="[+(string-substitute (string->c-name! (string-downcase (get "Name"))) " " "-")+].c" source="src/main.c"/>
+ <file destination="Makefile" source="src/Makefile.tpl"/>
</directory>
</content>
<action>
- <open file="[+Destination+]/[+Name+].anjuta"/>
+ <open file="[+Destination+]/[+(string-substitute (string->c-name! (string-downcase (get "Name"))) " " "-")+].anjuta"/>
</action>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]