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
Index: update-gettext
===================================================================
--- update-gettext	(nonexistent)
+++ update-gettext	(revision 5)
@@ -0,0 +1,84 @@
+#!/bin/bash
+
+CWD=`pwd`
+
+SCRIPT_DIR=`cd $(dirname ${BASH_SOURCE[0]}) >/dev/null 2>&1 && pwd`
+program=`basename $0`
+
+cd ${SCRIPT_DIR}/..
+
+
+################################################################
+# Gettext:
+#
+gettextize --force
+
+#
+# Patch for po/Makefile.in.in
+#
+file=po/Makefile.in.in
+
+if ! `cat $file | grep -q '^top_builddir'` ; then
+  line="`cat $file | grep -n '^top_srcdir' | cut -f2 -d':'`"
+  lnum="`cat $file | grep -n '^top_srcdir' | cut -f1 -d':'`"
+  echo "Finding the line for 'top_builddir = @top_builddir@' declaration"
+  if [ ! -z "$line" ] ; then
+    echo "   FOUND: $file: $lnum: $line"
+    sed -i "$lnum a\
+top_builddir = @top_builddir@" $file
+  fi
+fi
+echo ""
+
+#
+# gettextize output:
+# =================
+#
+# -------------------------------------------------------------------------------
+# Creating m4/ChangeLog
+# Updating Makefile.am (backup is in Makefile.am~)
+# Updating configure.ac (backup is in configure.ac~)
+# Adding an entry to ChangeLog (backup is in ChangeLog~)
+#
+# Please create po/Makevars from the template in po/Makevars.template.
+# You can then remove po/Makevars.template.
+#
+# Please fill po/POTFILES.in as described in the documentation.
+#
+# Please run 'aclocal' to regenerate the aclocal.m4 file.
+# You need aclocal from GNU automake 1.9 (or newer) to do this.
+# Then run 'autoconf' to regenerate the configure file.
+#
+# You will also need config.guess and config.sub, which you can get from the CVS
+# of the 'config' project at http://savannah.gnu.org/. The commands to fetch
+# them
+# are
+# $ wget
+# 'http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess'
+# $ wget
+# 'http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub'
+#
+# You might also want to copy the convenience header file gettext.h
+# from the /usr/share/gettext directory into your package.
+# It is a wrapper around <libintl.h> that implements the configure --disable-nls
+# option.
+#
+# Press Return to acknowledge the previous five paragraphs.
+# -------------------------------------------------------------------------------
+#
+# NOTE:
+# ====
+#   Собственные исходники, там где надо использовать <libintl.h>,
+#   должны включать "gettext.h" тогда можно будет использовать опцию
+#   конфигурирования --disable-nls .
+#
+if [ ! -f "po/Makevars" ] ; then
+  mv po/Makevars.template po/Makevars
+else
+  mv po/Makevars.template po/Makevars
+fi
+cp -a gettext.h gettext.h~
+cp /usr/share/gettext/gettext.h .
+#
+# End of Gettext.
+################################################################

Property changes on: update-gettext
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property