summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorroot <root@dev.spline.de>2008-10-17 16:27:42 +0200
committerroot <root@dev.spline.de>2008-10-17 16:27:42 +0200
commit1b83e598ff7b149994114447e54af9c99c17b964 (patch)
tree8c0c601b076554db308f918a0e4498f8a7ae5d53
parentfb2f15e2bed219a9bd06cf851898d7213f69a765 (diff)
downloaddev-scripts-1b83e598ff7b149994114447e54af9c99c17b964.tar.gz
dev-scripts-1b83e598ff7b149994114447e54af9c99c17b964.tar.xz
dev-scripts-1b83e598ff7b149994114447e54af9c99c17b964.zip
add project description
-rwxr-xr-xbin/addproject8
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/addproject b/bin/addproject
index 0626003..7f853d1 100755
--- a/bin/addproject
+++ b/bin/addproject
@@ -20,6 +20,9 @@ main() {
eerror "Project ${project_name} already exists."
fi
+ eask_str "a project description"
+ project_desc=${REPLY}
+
# who requests the project ?
while [[ -z ${user_name} ]]
do
@@ -55,7 +58,10 @@ main() {
eheading "creating new trac project"
eexec mysqladmin create ${trac_db}
- eexec trac-admin ${trac_home} initenv --inherit=${TRAC_INI} ${project_name} "mysql://${MYSQL_USER}:${MYSQL_PASS}@${MYSQL_HOST}/${trac_db}" svn ${svn_home}
+ eexec trac-admin ${trac_home} initenv --inherit=${TRAC_INI} ${project_name} \
+ "mysql://${MYSQL_USER}:${MYSQL_PASS}@${MYSQL_HOST}/${trac_db}" svn ${svn_home}
+ eexec sed -i -e "/^name =/a\\descr = ${project_desc}\\" ${trac_home}/conf/trac.ini
+
if [[ ${project_closed} == y ]]
then
for perm in BROWSER_VIEW CHANGESET_VIEW FILE_VIEW LOG_VIEW MILESTONE_VIEW \