Math Processor Unit Library

libmpu – library of arithmetic functions for integer, real, and complex numbers of increased digit capacity

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