From 7e35bc853c79d0c08566fae6ccb04b39a80386b3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sergi=20Hern=C3=A0ndez=20Juan?= <shernand@iri.upc.edu>
Date: Tue, 20 Nov 2012 10:37:51 +0000
Subject: [PATCH] Chnaged the script to substitute '_' for '-' in the project
 name.

---
 new_project.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/new_project.sh b/new_project.sh
index ceeb81a..baa267a 100755
--- a/new_project.sh
+++ b/new_project.sh
@@ -181,7 +181,8 @@ rm tmp2.txt
 rm ReadMe_template.txt
 
 #Set the project name on the CMakeLists.txt script file
-sed 's/project_name/'$NAME'/g' <CMakeLists_template.txt >./trunk/CMakeLists.txt
+NEW_NAME=$(echo $NAME | sed 's/_/-/g')
+sed 's/project_name/'$NEW_NAME'/g' <CMakeLists_template.txt >./trunk/CMakeLists.txt
 rm CMakeLists_template.txt
 
 #Set the project name on the doxygen_project_name.dox sript file
-- 
GitLab