diff options
author | Sven Gothel <[email protected]> | 2010-11-29 03:34:26 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2010-11-29 03:34:26 +0100 |
commit | fa337a3723a2b376bdc7f74da5f5321eb8cb57f3 (patch) | |
tree | aafdd3219f7a6b80f64901e37228f26b37c02f9f /git | |
parent | f44fb7920627ac00d2c3f949793d0d92fdea1bcd (diff) |
Add git scripts/doc; enable post update hook in git-make script
Diffstat (limited to 'git')
-rw-r--r-- | git/MAKE-gitweb.sh | 28 | ||||
-rwxr-xr-x | git/git-enable-post-update-hook.sh | 12 | ||||
-rw-r--r-- | git/git-install.txt | 6 | ||||
-rwxr-xr-x | git/git-make-shared-bare.sh | 6 | ||||
-rw-r--r-- | git/gitweb_config.perl | 11 |
5 files changed, 62 insertions, 1 deletions
diff --git a/git/MAKE-gitweb.sh b/git/MAKE-gitweb.sh new file mode 100644 index 0000000..cffb7d2 --- /dev/null +++ b/git/MAKE-gitweb.sh @@ -0,0 +1,28 @@ +# +# git-1.7.3.2 +# +# - To install gitweb to /src/www/git/ when git wrapper +# is installed at /opt-linux-x86_64/bin/git and the repositories (projects) +# we want to display are under /srv/scm, you can do +# +# Run this from the gitweb folder, which contains the gitweb source +# + +gitinstall=/opt-linux-x86_64 +wwwgitdir=/srv/www/jogamp.org/git +scmdir=/srv/scm + + make GITWEB_PROJECTROOT="$scmdir" \ + GITWEB_JS="static/gitweb.js" \ + GITWEB_CSS="static/gitweb.css" \ + GITWEB_LOGO="static/git-logo.png" \ + GITWEB_FAVICON="static/git-favicon.png" \ + bindir=$gitinstall/bin \ + + + rm -rf $wwwgitdir/static + cp -a static $wwwgitdir + cp -fv gitweb.{cgi,perl} gitweb_config.perl $wwwgitdir + + + diff --git a/git/git-enable-post-update-hook.sh b/git/git-enable-post-update-hook.sh new file mode 100755 index 0000000..3a65269 --- /dev/null +++ b/git/git-enable-post-update-hook.sh @@ -0,0 +1,12 @@ +#! /bin/bash + +gitinstall=/opt-linux-x86_64 +thisdir=`pwd` + +for i in *.git ; do + echo $i + cp -av $gitinstall/share/git-core/templates/hooks/post-update.sample $i/hooks/post-update + cd $i + git update-server-info + cd $thisdir +done diff --git a/git/git-install.txt b/git/git-install.txt new file mode 100644 index 0000000..44353aa --- /dev/null +++ b/git/git-install.txt @@ -0,0 +1,6 @@ +tar xjf git-1.7.3.2.tar.bz2 +cd git-1.7.3.2 +# important options, otherwise no http support +./configure --prefix=/opt-linux-x86_64 --with-curl=/usr --with-expat=/usr +make all +# make install as root diff --git a/git/git-make-shared-bare.sh b/git/git-make-shared-bare.sh index 9903713..2e358e6 100755 --- a/git/git-make-shared-bare.sh +++ b/git/git-make-shared-bare.sh @@ -1,11 +1,15 @@ #! /bin/sh +gitinstall=/opt-linux-x86_64 + make_git_bare() { name=$1 shift mkdir $name.git cd $name.git git init --bare --shared=0664 + cp -av $gitinstall/share/git-core/templates/hooks/post-update.sample hooks/post-update + git update-server-info cd .. } @@ -21,4 +25,4 @@ make_git_bare() { #make_git_bare jogl-utils #make_git_bare jogamp.org #make_git_bare jogamp.org-SocialCoding -#make_git_bare jogamp-scripting +make_git_bare jogamp-scripting diff --git a/git/gitweb_config.perl b/git/gitweb_config.perl new file mode 100644 index 0000000..7ff462a --- /dev/null +++ b/git/gitweb_config.perl @@ -0,0 +1,11 @@ + +$feature{'blame'}{'default'} = [1]; +$feature{'blame'}{'override'} = 1; + +$feature{'pickaxe'}{'default'} = [1]; +$feature{'pickaxe'}{'override'} = 1; + +$feature{'snapshot'}{'default'} = ['']; +#$feature{'snapshot'}{'default'} = ['tbz2']; +#$feature{'snapshot'}{'default'} = ['tbz2', 'tgz', 'zip', 't7z']; +#$feature{'snapshot'}{'override'} = 2; |