From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Fri, 5 May 2006 00:49:10 +0400 From: "Alexey I. Froloff" To: ALT Devel discussion list Message-ID: <20060504204910.GB9431@hell.immo.ru> References: <445A3DF1.2020908@altlinux.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="LKTjZJSUETSlgu2t" Content-Disposition: inline In-Reply-To: <445A3DF1.2020908@altlinux.com> User-Agent: Mutt/1.5.11 Subject: Re: [devel] =?koi8-r?b?Z2VhciAtINPCz9LLwSDQwcvF1M/X?= 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: Thu, 04 May 2006 20:49:37 -0000 Archived-At: List-Archive: List-Post: --LKTjZJSUETSlgu2t Content-Type: multipart/mixed; boundary="MnLPg7ZWsaic7Fhd" Content-Disposition: inline --MnLPg7ZWsaic7Fhd Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Anton Farygin [060504 21:49]: > =F3 =D3=CF=DA=C4=C1=CE=C9=C5=CD =D7=D3=C5=C8 =CB=C1=D4=C1=CC=CF=C7=CF=D7 = =D7 =D4=C5=CB=D5=DD=C5=CD =CB=C1=D4=C1=CC=CF=C7=C5 git'=C1 (=CE=D5 =C9=CC=C9 > =CE=C1=D3=D4=D2=C1=C9=D7=C1=C5=CD=CF). =F1 =CE=C1=D0=C9=D3=C1=CC =DE=D5=C4=CE=CF=CA =CB=D2=C9=D7=C9=DA=CE=D9 "=D7= =D2=C1=D0=D0=C5=D2" =C4=CC=D1 rpm - =D0=CF=C4=D3=D4=C1=D7=CC=D1=C5=D4 =CE= =D5=D6=CE=D9=CA =2Erpmmacros =D7 =DA=C1=D7=C9=D3=C9=CD=CF=D3=D4=C9 =CF=D4 =D4=C5=CB=D5=DD= =C5=C7=CF =CB=C1=D4=C1=CC=CF=C7=C1. $ cat ~/.rpmwraprc RPM_PREFIX=3D"/usr/bin" RPM=3D"$RPM_PREFIX/rpm" macrofile=3D".rpmwrapmacros" allow_prefix=3D"$HOME/src/BTE:$HOME/src/gitsnaps/packages" $ cat ~/src/gitsnaps/packages/.rpmwrapmacros %_topdir %homedir/src/gitsnaps/packages %_topsrcdir %{_topdir}/%{name} %_builddir %{_topdir}/%{name}/work %_sourcedir %{_topsrcdir}/files %_specdir %{_topsrcdir} $ cat ~/src/BTE/.rpmwrapmacros %_topdir %homedir/src/BTE/RPM %_topsrcdir %{_topdir}/%{name} %_builddir %{_topdir}/%{name}/work %_sourcedir %{_topsrcdir}/files %_specdir %{_topsrcdir} $ ls -Alog ~/bin/rpm*=20 lrwxrwxrwx 1 10 May 1 14:47 ~/bin/rpm -> rpmwrapper lrwxrwxrwx 1 10 May 1 14:47 ~/bin/rpmbuild -> rpmwrapper -rwxr-xr-x 1 1038 May 5 00:42 ~/bin/rpmwrapper =E4=D5=CD=C1=C0, =D0=D2=C9=CE=C3=C9=D0 =D0=CF=CE=D1=D4=C5=CE? =EB=D2=C9=D4= =C9=CB=C1 =D0=D2=C9=D7=C5=D4=D3=D4=D7=D5=C5=D4=D3=D1. --=20 Regards, Sir Raorn. --MnLPg7ZWsaic7Fhd Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=rpmwrapper #!/bin/sh -efu PROG="${0##*/}" etc="/etc/rpm" [ "$0" = "./$PROG" ] && etc="." ||: [ -f $etc/rpmwraprc ] && . $etc/rpmwraprc ||: [ -f ~/.rpmwraprc ] && . ~/.rpmwraprc ||: : ${RPM_PREFIX:="/usr/bin"} : ${RPM:="$RPM_PREFIX/rpm"} : ${macrofile:=".rpmwrapmacros"} cwd="$(pwd)" prefix="" args="" sIFS="$IFS" IFS=":" for i in $allow_prefix; do case "$cwd" in $i/*|$i) [ -f "$i/$macrofile" ] && prefix="$i" ||: ;; *) continue ;; esac done IFS="$sIFS" rpmrc= exit_handler() { local rc=$? trap - EXIT [ -z "$rpmrc" ] || rm -r -- "$rpmrc" exit $rc } if [ -n "$prefix" ]; then rpmrc="$(mktemp -t "$PROG-rpmrc.XXXXXXXX")" trap exit_handler HUP PIPE INT QUIT TERM EXIT macrofiles="$($RPM --showrc| grep macrofiles)" macrofiles="${macrofiles#macrofiles}" macrofiles="${macrofiles#*:}" args="--rcfile=$rpmrc" cat < "$rpmrc" include: /usr/lib/rpm/rpmrc macrofiles: ${macrofiles+$macrofiles:}$prefix/$macrofile EOF fi [ -x "$RPM_PREFIX/$PROG" ] && "$RPM_PREFIX/$PROG" $args "$@" --MnLPg7ZWsaic7Fhd-- --LKTjZJSUETSlgu2t Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQFEWmjGVqT7+fkT8woRAiygAKDkEK+xyhKYV6bEFLDN5rpQkf/hGwCcDZM+ 4o+yv3EDn+VmunTPAM5yoLU= =zdfW -----END PGP SIGNATURE----- --LKTjZJSUETSlgu2t--