~ubuntu-branches/ubuntu/utopic/gitolite3/utopic-proposed

« back to all changes in this revision

Viewing changes to src/triggers/post-compile/update-description-file

  • Committer: Package Import Robot
  • Author(s): David Bremner
  • Date: 2013-05-18 17:59:21 UTC
  • Revision ID: package-import@ubuntu.com-20130518175921-ac4xe6vd0jtxvjot
Tags: upstream-3.5.1+4
ImportĀ upstreamĀ versionĀ 3.5.1+4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
# For normal (not "wild") repos, gitolite v3 sets 'gitweb.description' instead
 
4
# of putting the text in the "description" file.  This is easier because it
 
5
# just goes with the flow of setting config variables; nothing special needs
 
6
# to be done for the description.
 
7
 
 
8
# But this only works for gitweb, not for cgit.  Cgit users must uncomment the
 
9
# 'cgit' line in the ENABLE list in the rc file (which has the effect of
 
10
# adding this program to the POST_COMPILE trigger list).
 
11
 
 
12
cd $GL_REPO_BASE
 
13
gitolite list-phy-repos | gitolite git-config % gitweb.description |
 
14
    while read a b c
 
15
    do
 
16
        echo "$c" > $GL_REPO_BASE/$a.git/description
 
17
    done