cGit-UI for Git Repositories

cGit-UI – is a web interface for Git Repositories. cGit CGI script is writen in C and therefore it's fast enough

12 Commits   0 Branches   1 Tag
     5         kx #!/bin/bash
     5         kx 
     5         kx CWD=`pwd`
     5         kx 
     5         kx program=`basename $0`
     5         kx 
     5         kx usage() {
     5         kx   cat << EOF
     5         kx 
     5         kx Usage: $program [options]
     5         kx 
     5         kx Options:
     5         kx   -h,--help                  Display this message.
     5         kx 
     5         kx EOF
     5         kx }
     5         kx 
     5         kx if [ -f "${CWD}/Makefile" ] ; then
     5         kx   make distclean
     5         kx fi
     5         kx 
     5         kx svnignore='.svnignore'
     5         kx 
     5         kx while read ln; do
     5         kx   line=`echo "${ln}" | sed 's,^[ \t],,' | sed 's,[ \t]$,,'`
     5         kx   if [ "x$line" != "x" -a "${line:0:1}" != "#" ] ; then
     5         kx     if `echo "${line}" | grep -q '\*~$'` ; then
     5         kx       find "`dirname "${line}"`" -type f -iname '*~' -print0 | while IFS= read -r -d '' file ; do
     5         kx         rm -f "$file"
     5         kx       done
     5         kx     elif `echo "${line}" | grep -q '\*'` ; then
     5         kx       find "`dirname "${line}"`" -type f -iname "`basename "${line}"`" -print0 | while IFS= read -r -d '' file ; do
     5         kx         rm -f "$file"
     5         kx       done
     5         kx     else
     5         kx       if [ -d "${line}" ] ; then rm -rf "${line}" ; fi
     5         kx       if [ -f "${line}" ] ; then rm  -f "${line}" ; fi
     5         kx     fi
     5         kx   fi
     5         kx done < ${CWD}/${svnignore}