From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Sun, 2 Apr 2006 18:22:21 +0400 From: Sergey Vlasov To: ALT Devel discussion list Message-ID: <20060402142221.GB17466@procyon.home> References: <200603251233.24551.shrek@freesource.info> <20060402123024.GA17466@procyon.home> <20060402124255.GA2778@basalt.office.altlinux.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="V0207lvV8h4k8FAm" Content-Disposition: inline In-Reply-To: <20060402124255.GA2778@basalt.office.altlinux.org> Subject: Re: [devel] RPM macros fonts X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.7 Precedence: list Reply-To: ALT Devel discussion list List-Id: ALT Devel discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Apr 2006 14:22:52 -0000 Archived-At: List-Archive: List-Post: --V0207lvV8h4k8FAm Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Apr 02, 2006 at 04:42:55PM +0400, Dmitry V. Levin wrote: > =EE=C1 =CF=C2=C1 =DC=D4=C9=C8 =D7=CF=D0=D2=CF=D3=C1 =D5 =CD=C5=CE=D1 =D4= =C1=CB=CF=CA =CF=D4=D7=C5=D4: =DE=C5=CD =C2=CF=CC=D8=DB=C5 =C2=D5=C4=C5=D4 = =D0=C5=D2=C5=CE=C5=D3=C5=CE=CF =C9=DA > =CD=C1=CB=D2=CF=D3=C1 =D7=CF =D7=CE=C5=DB=CE=C9=CA =D3=CB=D2=C9=D0=D4, = =D4=C5=CD =CC=D5=DE=DB=C5, =D0=CF=D3=CB=CF=CC=D8=CB=D5 =D0=D2=C9 =CE=C5=CF= =C2=C8=CF=C4=C9=CD=CF=D3=D4=C9 =D7=CE=C5=D3=D4=C9 > =C9=DA=CD=C5=CE=C5=CE=C9=D1 =D3=C4=C5=CC=C1=D4=D8 =DC=D4=CF =C2=D5=C4=C5= =D4 =D3=D5=DD=C5=D3=D4=D7=C5=CE=CE=CF =D0=D2=CF=DD=C5 =C9 =C2=D9=D3=D4=D2= =C5=C5, =C9=C2=CF =CE=C5 =D0=CF=D4=D2=C5=C2=D5=C5=D4=D3=D1 > =D0=C5=D2=C5=D3=CF=C2=C9=D2=C1=D4=D8 =D0=C1=CB=C5=D4=D9. =E8=CF=D2=CF=DB=CF, =DA=C1=CA=CD=A3=CD=D3=D1 =D0=C5=D2=C5=D0=C9=D3=D9=D7=C1= =CE=C9=C5=CD =CD=C1=CB=D2=CF=D3=CF=D7 =D7 =D7=C9=C4=C5 =D3=CB=D2=C9=D0=D4= =CF=D7 =D0=CF =CF=C2=D2=C1=DA=D5 =C9 =D0=CF=C4=CF=C2=C9=C0 info-install: /usr/sbin/install_fonts: ----------------------------------------------------------------------- #!/bin/sh -e PROG=3Dinstall_fonts Fatal() { echo "$PROG: $*" >&2 exit 1 } Usage() { cat >&2 </dev/null ||: fi if [ -n "$type1" ]; then /usr/bin/mkfontscale "$dir" ||: fi /usr/bin/mkfontdir "$dir" ||: /usr/bin/fc-cache "$dir" ||: /usr/sbin/chkfontpath -q $first -a "$dir" ||: done ----------------------------------------------------------------------- /usr/sbin/uninstall_fonts: ----------------------------------------------------------------------- #!/bin/sh -e PROG=3Duninstall_fonts if ! [ "$RPM_INSTALL_ARG1" -ge 0 ] 2>/dev/null; then echo "$PROG: invalid or undefined variable: RPM_INSTALL_ARG1" >&2 exit 1 fi [ "$RPM_INSTALL_ARG1" -eq 0 ] || exit 0 for dir in "$@"; do /usr/sbin/chkfontpath -q -r "$dir" ||: done ----------------------------------------------------------------------- =ED=C1=CB=D2=CF=D3=D9 (=CB=D2=CF=CD=C5 %_*dir): ----------------------------------------------------------------------- %add_bitmap_font_path() %_sbindir/install_fonts --bitmap %1 %add_type1_font_path() %_sbindir/install_fonts --type1 %1 %add_ttf_font_path() %_sbindir/install_fonts --ttf %1 %add_otf_font_path() %_sbindir/install_fonts --otf %1 %add_bitmap_font_path_first() %_sbindir/install_fonts --bitmap --first %1 %remove_font_path() %_sbindir/uninstall_fonts %1 ----------------------------------------------------------------------- =EB=C1=CB =CE=C1=DA=D7=C1=D4=D8 =D0=C1=CB=C5=D4 =D3=CF =D3=CB=D2=C9=D0=D4= =C1=CD=C9 - alt-fonts-install? (=F0=D2=CF=D3=D4=CF fonts-install =C2=D5=C4=C5=D4 =CD=C5=DB=C1=D4=D8=D3=D1 =D3=D2=C5=C4=C9 =D0= =D2=CF=DE=C9=C8 fonts-$TYPE-$NAME - =C9=CC=C9 =D0=D5=D3=D4=D8 =D4=C1=CD =C9 =D4=CF=D2=DE=C9=D4?) --V0207lvV8h4k8FAm Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQFEL94dW82GfkQfsqIRApTpAJ43KjRlATWfHJkdOLQINRXT17k4HgCdGpft i1Af5aTCKODnnMzUT7fRvN4= =1fbQ -----END PGP SIGNATURE----- --V0207lvV8h4k8FAm--