summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharlie <root@thewalter.net>2010-10-01 02:47:11 +0000
committerCharlie <root@thewalter.net>2010-10-01 02:47:11 +0000
commit713ca85bcadcddc4b8b6e9be5387aeac7b633d35 (patch)
tree0c94d22058733e84b0d9d01568eb648367eae50b
parentabfc535827808489d6ee515989d1d38cc916c342 (diff)
A better method for per repository infoHEADmaster
-rwxr-xr-xinstall-repos26
1 files changed, 10 insertions, 16 deletions
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