From 713ca85bcadcddc4b8b6e9be5387aeac7b633d35 Mon Sep 17 00:00:00 2001 From: Charlie Date: Fri, 1 Oct 2010 02:47:11 +0000 Subject: A better method for per repository info --- install-repos | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) (limited to 'install-repos') diff --git a/install-repos b/install-repos index c8792d2..7e5348e 100755 --- a/install-repos +++ b/install-repos @@ -34,25 +34,19 @@ for git in $REPOS; do if [ ! -f git-receive-allow ]; then touch git-receive-allow fi - if [ ! -f git-description ]; then - touch git-description - fi + + if [ ! -f cgit-repo-rc ]; then + ( + echo "repo.desc=$simple" + echo "repo.owner=" + ) > cgit-repo-rc + fi # Add to cgit list ( - if [ -f cgit-repo-rc ]; then - include=$git/cgit-repo-rc - else - desc=$(cat git-description) - if [ -z "$desc" ]; then - desc="$simple" - fi - echo "repo.url=$simple" - echo "repo.path=$git" - echo "repo.desc=$desc" - echo "repo.owner=Stef" - fi - echo + echo "repo.url=$simple" + echo "repo.path=$git" + echo "include=$git/cgit-repo-rc" ) >> $DIR/cgit-repo-rc fi done -- cgit v1.2.3