From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Wed, 27 Feb 2008 01:30:42 +0300 From: "Dmitry V. Levin" To: ALT Devel discussion list Message-ID: <20080226223042.GG3246@wo.int.altlinux.org> Mail-Followup-To: ALT Devel discussion list References: <20080225193323.GA23695@wo.int.altlinux.org> <20080226165059.GD30111@newmaster.mivlgu.local> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="NY6JkbSqL3W9mApi" Content-Disposition: inline In-Reply-To: <20080226165059.GD30111@newmaster.mivlgu.local> X-fingerprint: FE4C 93AB E19A 2E4C CB5D 3E4E 7CAB E6AC 9E35 361E Subject: Re: [devel] I: kernel-build-scripts X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.9 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Feb 2008 22:30:42 -0000 Archived-At: List-Archive: List-Post: --NY6JkbSqL3W9mApi Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Feb 26, 2008 at 07:50:59PM +0300, Sergey Vlasov wrote: > On Mon, Feb 25, 2008 at 10:33:23PM +0300, Dmitry V. Levin wrote: > > - =E9=D3=D0=CF=CC=D8=DA=D5=C5=CD=D9=CA =C4=CC=D1 =D3=C2=CF=D2=CB=C9 =CD= =CF=C4=D5=CC=C5=CA add_changelog =C4=CF=CC=D6=C5=CE =C2=D9=D4=D8 =D0=D2=CF= =D0=C1=D4=DE=C5=CE. >=20 > =F0=C1=D4=DE=C5=CE=D9=CA add_changelog =CE=C5=CF=C2=C8=CF=C4=C9=CD =D4=CF= =CC=D8=CB=CF =D7 =DE=C1=D3=D4=CE=CF=CD =D3=CC=D5=DE=C1=C5 - =CB=CF=C7=C4=C1 > =C6=CF=D2=CD=C9=D2=D5=C0=D4=D3=D1 =D0=C1=CB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F=C4 setarch i586 > =C9=DD=C5=D4=D3=D1 =C6=C1=CA=CC =CD=C1=CB=D2=CF=D3=CF=D7 =C4=CC=D1 i586, = =C1 =CE=C5 =C4=CC=D1 x86_64. =E9=CE=D4=C5=D2=C5=D3=CE=CF, =C1 =DA=C1=DE=C5=CD =D4=C1=CB =D3=C4=C5=CC=C1= =CE=CF? =F1 =C9=CD=C5=C0 =D7 =D7=C9=C4=D5 =DA=C1=D0=D5=D3=CB add_changelog'=C1 =D7 = =C8=CF=D3=D4-=D3=C9=D3=D4=C5=CD=C5. > -[ -n "$RPMARG" ] || RPMARG=3D"-q --qf $(Quote "$qf")" > +RPMARG=3D"$RPMARG -q --qf $(Quote "$qf")" > for spec in "$@"; do > eval "$(Quote "$RPM")" $RPMARG --specfile "$(Quote "$spec")" |head -1 > done >=20 > =F4.=C5., =D2=C1=CE=D8=DB=C5 =CF=D0=C3=C9=D1 -a =D0=CF=CC=CE=CF=D3=D4=D8= =C0 =DA=C1=CD=C5=CE=D1=CC=C1 =D7=D3=C5 =D0=C1=D2=C1=CD=C5=D4=D2=D9, =D0=C5= =D2=C5=C4=C1=D7=C1=C5=CD=D9=C5 > rpm; =D0=CF=D3=CC=C5 =DC=D4=CF=C7=CF =C9=DA=CD=C5=CE=C5=CE=C9=D1 =D0=C5= =D2=C5=C4=C1=CE=CE=D9=C5 =D0=C1=D2=C1=CD=C5=D4=D2=D9 =C4=CF=C2=C1=D7=CC=D1= =C0=D4=D3=D1 =CB =D4=C5=CD, > =CB=CF=D4=CF=D2=D9=C5 =D3=C6=CF=D2=CD=C9=D2=CF=D7=C1=CC =D3=CB=D2=C9=D0= =D4 stamp_spec. =E4=CF=D0=D5=D3=D4=C9=CD=CF =CC=C9 =D0=CF=C4=CF=C2=CE=CF=C5 > =C9=DA=CD=C5=CE=C5=CE=C9=C5, =C9=CC=C9 =D0=D2=C9=C4=A3=D4=D3=D1 =DA=C1=D7= =C5=D3=D4=C9 =C4=CF=D0=CF=CC=CE=C9=D4=C5=CC=D8=CE=D5=C0 =CF=D0=C3=C9=C0? (= =F7 =D4=C5=CB=D5=DD=C5=CD > =D7=C1=D2=C9=C1=CE=D4=C5 =CF=D0=C3=C9=D1 -a =C6=C1=CB=D4=C9=DE=C5=D3=CB= =C9 =C2=C5=D3=D0=CF=CC=C5=DA=CE=C1, =D0=CF=D3=CB=CF=CC=D8=CB=D5 =D3=CB=D2= =C9=D0=D4 stamp_spec =D7 > =DC=D4=CF=CD =D3=CC=D5=DE=C1=C5 =C6=C1=CB=D4=C9=DE=C5=D3=CB=C9 =D3=D7=CF= =C4=C9=D4=D3=D1 =CB =D7=D9=DA=CF=D7=D5 rpm =D3 =D5=CB=C1=DA=C1=CE=CE=D9=CD= =C9 =D0=C1=D2=C1=CD=C5=D4=D2=C1=CD=C9 > =D3 =C4=CF=C2=C1=D7=CC=C5=CE=C9=C5=CD --specfile.) =EE=C1=D7=C5=D2=CE=CF=C5, =C4=CF=D0=D5=D3=D4=C9=CD=CF. =F7=CF=CF=C2=DD=C5 =D4=C1=CD =CF=DE=C5=CE=D8 =D3=D4=C1=D2=D9=CA =CB=CF=C4, = =D3=C5=CA=DE=C1=D3 =C2=D9 =D1 =D4=C1=CB =CE=C5 =CE=C1=D0=C9=D3=C1=CC. > 2. =E4=CF=C2=C1=D7=CC=C5=CE=C9=C5 --define '_allow_undefined_macros 1' = =D7 =D0=C1=D2=C1=CD=C5=D4=D2=D9 =D7=D9=DA=CF=D7=CF=D7 > rpm, =D7=D9=D0=CF=CC=CE=D1=C5=CD=D9=C8 =D3=CB=D2=C9=D0=D4=CF=CD add_chang= elog: >=20 > --- /usr/bin/add_changelog 2007-12-27 12:17:30 +0300 > +++ /home/vsu/bin/add_changelog 2008-01-14 22:37:30 +0300 > @@ -21,9 +21,9 @@ > =20 > PROG=3D"${0##*/}" > =20 > -STAMPER=3D/usr/bin/stamp_spec > +STAMPER=3D/home/vsu/bin/stamp_spec > RPM=3D/bin/rpm > -RPMARG=3D > +RPMARG=3D"--define '_allow_undefined_macros 1'" > ENTRY=3D'- ' > NOCHECK=3D > =20 > @@ -105,8 +105,8 @@ > continue > fi > if [ -z "$NOCHECK" ]; then > - oldver=3D`$RPM -q --qf '%{CHANGELOGNAME}\n' --specfile "$spec" |sed -n= e '/^(none)$/q;s/[^<]\+<[^>]\+> *\(.\+\)$/\1/pg'` > - newver=3D`$RPM -q --qf '%|SERIAL?{%{SERIAL}:}|%{VERSION}-%{RELEASE}\n'= --specfile "$spec" |head -1` > + oldver=3D`$RPM --define '_allow_undefined_macros 1' -q --qf '%{CHANGEL= OGNAME}\n' --specfile "$spec" |sed -ne '/^(none)$/q;s/[^<]\+<[^>]\+> *\(.\+= \)$/\1/pg'` > + newver=3D`$RPM --define '_allow_undefined_macros 1' -q --qf '%|SERIAL?= {%{SERIAL}:}|%{VERSION}-%{RELEASE}\n' --specfile "$spec" |head -1` > if [ "$oldver" =3D "$newver" ]; then > echo "$PROG: $spec: version \"$oldver\" unchanged, skipping" > exitcode=3D1 >=20 > =F7 =D0=D2=C9=CE=C3=C9=D0=C5 =CD=CF=D6=CE=CF =D0=C5=D2=C5=C4=C5=CC=C1=D4= =D8 =DC=D4=CF=D4 =D3=CB=D2=C9=D0=D4, =DE=D4=CF=C2=D9 =DA=CE=C1=DE=C5=CE=C9= =C5 $RPMARG =CE=C5 > =D4=CF=CC=D8=CB=CF =D0=C5=D2=C5=C4=C1=D7=C1=CC=CF=D3=D8 =D7 stamp_spec, = =CE=CF =C9 =C9=D3=D0=CF=CC=D8=DA=CF=D7=C1=CC=CF=D3=D8 =D0=D2=C9 =D7=D9=DA= =CF=D7=C1=C8 rpm > =C9=DA =D3=C1=CD=CF=C7=CF =D3=CB=D2=C9=D0=D4=C1 add_changelog; =ED=CF=D6=CE=CF =D0=D2=C5=C4=D3=D4=C1=D7=C9=D4=D8 =D3=C5=C2=C5 =D0=D2=C9=CD= =C5=D2 =D2=C1=DA=D5=CD=CE=CF=C7=CF RPMARG, =CB=CF=D4=CF=D2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_undefined_macros =D0=CF =D5=CD=CF=CC=DE=C1= =CE=C9=C0. --=20 ldv --NY6JkbSqL3W9mApi Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (GNU/Linux) iEYEARECAAYFAkfEkxIACgkQfKvmrJ41Nh5IWACePfEEMIK+DC04wqAboC3OTehg QE8AnAg1JpIIY5Qi4lYQwllmGwiTIT9g =c3yA -----END PGP SIGNATURE----- --NY6JkbSqL3W9mApi--