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

3 Commits   0 Branches   1 Tag
05d292b2 (kx 2023-03-24 03:51:10 +0300  1) #!/bin/bash
05d292b2 (kx 2023-03-24 03:51:10 +0300  2) 
05d292b2 (kx 2023-03-24 03:51:10 +0300  3) CWD=`pwd`
05d292b2 (kx 2023-03-24 03:51:10 +0300  4) 
05d292b2 (kx 2023-03-24 03:51:10 +0300  5) SCRIPT_DIR=`cd $(dirname ${BASH_SOURCE[0]}) >/dev/null 2>&1 && pwd`
05d292b2 (kx 2023-03-24 03:51:10 +0300  6) program=`basename $0`
05d292b2 (kx 2023-03-24 03:51:10 +0300  7) 
05d292b2 (kx 2023-03-24 03:51:10 +0300  8) cd ${SCRIPT_DIR}/..
05d292b2 (kx 2023-03-24 03:51:10 +0300  9) 
05d292b2 (kx 2023-03-24 03:51:10 +0300 10) 
05d292b2 (kx 2023-03-24 03:51:10 +0300 11) ################################################################
05d292b2 (kx 2023-03-24 03:51:10 +0300 12) # Gettext:
05d292b2 (kx 2023-03-24 03:51:10 +0300 13) #
05d292b2 (kx 2023-03-24 03:51:10 +0300 14) gettextize --force
05d292b2 (kx 2023-03-24 03:51:10 +0300 15) 
05d292b2 (kx 2023-03-24 03:51:10 +0300 16) #
05d292b2 (kx 2023-03-24 03:51:10 +0300 17) # Patch for po/Makefile.in.in
05d292b2 (kx 2023-03-24 03:51:10 +0300 18) #
05d292b2 (kx 2023-03-24 03:51:10 +0300 19) file=po/Makefile.in.in
05d292b2 (kx 2023-03-24 03:51:10 +0300 20) 
05d292b2 (kx 2023-03-24 03:51:10 +0300 21) if ! `cat $file | grep -q '^top_builddir'` ; then
05d292b2 (kx 2023-03-24 03:51:10 +0300 22)   line="`cat $file | grep -n '^top_srcdir' | cut -f2 -d':'`"
05d292b2 (kx 2023-03-24 03:51:10 +0300 23)   lnum="`cat $file | grep -n '^top_srcdir' | cut -f1 -d':'`"
05d292b2 (kx 2023-03-24 03:51:10 +0300 24)   echo "Finding the line for 'top_builddir = @top_builddir@' declaration"
05d292b2 (kx 2023-03-24 03:51:10 +0300 25)   if [ ! -z "$line" ] ; then
05d292b2 (kx 2023-03-24 03:51:10 +0300 26)     echo "   FOUND: $file: $lnum: $line"
05d292b2 (kx 2023-03-24 03:51:10 +0300 27)     sed -i "$lnum a\
05d292b2 (kx 2023-03-24 03:51:10 +0300 28) top_builddir = @top_builddir@" $file
05d292b2 (kx 2023-03-24 03:51:10 +0300 29)   fi
05d292b2 (kx 2023-03-24 03:51:10 +0300 30) fi
05d292b2 (kx 2023-03-24 03:51:10 +0300 31) echo ""
05d292b2 (kx 2023-03-24 03:51:10 +0300 32) 
05d292b2 (kx 2023-03-24 03:51:10 +0300 33) #
05d292b2 (kx 2023-03-24 03:51:10 +0300 34) # gettextize output:
05d292b2 (kx 2023-03-24 03:51:10 +0300 35) # =================
05d292b2 (kx 2023-03-24 03:51:10 +0300 36) #
05d292b2 (kx 2023-03-24 03:51:10 +0300 37) # -------------------------------------------------------------------------------
05d292b2 (kx 2023-03-24 03:51:10 +0300 38) # Creating m4/ChangeLog
05d292b2 (kx 2023-03-24 03:51:10 +0300 39) # Updating Makefile.am (backup is in Makefile.am~)
05d292b2 (kx 2023-03-24 03:51:10 +0300 40) # Updating configure.ac (backup is in configure.ac~)
05d292b2 (kx 2023-03-24 03:51:10 +0300 41) # Adding an entry to ChangeLog (backup is in ChangeLog~)
05d292b2 (kx 2023-03-24 03:51:10 +0300 42) #
05d292b2 (kx 2023-03-24 03:51:10 +0300 43) # Please create po/Makevars from the template in po/Makevars.template.
05d292b2 (kx 2023-03-24 03:51:10 +0300 44) # You can then remove po/Makevars.template.
05d292b2 (kx 2023-03-24 03:51:10 +0300 45) #
05d292b2 (kx 2023-03-24 03:51:10 +0300 46) # Please fill po/POTFILES.in as described in the documentation.
05d292b2 (kx 2023-03-24 03:51:10 +0300 47) #
05d292b2 (kx 2023-03-24 03:51:10 +0300 48) # Please run 'aclocal' to regenerate the aclocal.m4 file.
05d292b2 (kx 2023-03-24 03:51:10 +0300 49) # You need aclocal from GNU automake 1.9 (or newer) to do this.
05d292b2 (kx 2023-03-24 03:51:10 +0300 50) # Then run 'autoconf' to regenerate the configure file.
05d292b2 (kx 2023-03-24 03:51:10 +0300 51) #
05d292b2 (kx 2023-03-24 03:51:10 +0300 52) # You will also need config.guess and config.sub, which you can get from the CVS
05d292b2 (kx 2023-03-24 03:51:10 +0300 53) # of the 'config' project at http://savannah.gnu.org/. The commands to fetch
05d292b2 (kx 2023-03-24 03:51:10 +0300 54) # them
05d292b2 (kx 2023-03-24 03:51:10 +0300 55) # are
05d292b2 (kx 2023-03-24 03:51:10 +0300 56) # $ wget
05d292b2 (kx 2023-03-24 03:51:10 +0300 57) # 'http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess'
05d292b2 (kx 2023-03-24 03:51:10 +0300 58) # $ wget
05d292b2 (kx 2023-03-24 03:51:10 +0300 59) # 'http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub'
05d292b2 (kx 2023-03-24 03:51:10 +0300 60) #
05d292b2 (kx 2023-03-24 03:51:10 +0300 61) # You might also want to copy the convenience header file gettext.h
05d292b2 (kx 2023-03-24 03:51:10 +0300 62) # from the /usr/share/gettext directory into your package.
05d292b2 (kx 2023-03-24 03:51:10 +0300 63) # It is a wrapper around <libintl.h> that implements the configure --disable-nls
05d292b2 (kx 2023-03-24 03:51:10 +0300 64) # option.
05d292b2 (kx 2023-03-24 03:51:10 +0300 65) #
05d292b2 (kx 2023-03-24 03:51:10 +0300 66) # Press Return to acknowledge the previous five paragraphs.
05d292b2 (kx 2023-03-24 03:51:10 +0300 67) # -------------------------------------------------------------------------------
05d292b2 (kx 2023-03-24 03:51:10 +0300 68) #
05d292b2 (kx 2023-03-24 03:51:10 +0300 69) # NOTE:
05d292b2 (kx 2023-03-24 03:51:10 +0300 70) # ====
05d292b2 (kx 2023-03-24 03:51:10 +0300 71) #   Собственные исходники, там где надо использовать <libintl.h>,
05d292b2 (kx 2023-03-24 03:51:10 +0300 72) #   должны включать "gettext.h" тогда можно будет использовать опцию
05d292b2 (kx 2023-03-24 03:51:10 +0300 73) #   конфигурирования --disable-nls .
05d292b2 (kx 2023-03-24 03:51:10 +0300 74) #
05d292b2 (kx 2023-03-24 03:51:10 +0300 75) if [ ! -f "po/Makevars" ] ; then
05d292b2 (kx 2023-03-24 03:51:10 +0300 76)   mv po/Makevars.template po/Makevars
05d292b2 (kx 2023-03-24 03:51:10 +0300 77) else
05d292b2 (kx 2023-03-24 03:51:10 +0300 78)   mv po/Makevars.template po/Makevars
05d292b2 (kx 2023-03-24 03:51:10 +0300 79) fi
05d292b2 (kx 2023-03-24 03:51:10 +0300 80) cp -a gettext.h gettext.h~
05d292b2 (kx 2023-03-24 03:51:10 +0300 81) cp /usr/share/gettext/gettext.h .
05d292b2 (kx 2023-03-24 03:51:10 +0300 82) #
05d292b2 (kx 2023-03-24 03:51:10 +0300 83) # End of Gettext.
05d292b2 (kx 2023-03-24 03:51:10 +0300 84) ################################################################