From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Fri, 22 Jul 2005 17:26:56 +0400 From: Alexey Tourbin To: devel@altlinux.ru Message-ID: <20050722132656.GT24898@solemn.turbinal.org> Mail-Followup-To: devel@altlinux.ru Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="sBvc846/5FzkyDmz" Content-Disposition: inline Subject: [devel] I: unexpanded macros X-BeenThere: devel@altlinux.ru X-Mailman-Version: 2.1.5 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: Fri, 22 Jul 2005 13:27:52 -0000 Archived-At: List-Archive: List-Post: --sBvc846/5FzkyDmz Content-Type: multipart/mixed; boundary="8EXHJdkEfksMlRxO" Content-Disposition: inline --8EXHJdkEfksMlRxO Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable [at@basalt Sisyphus]$ find files/*/RPMS -type f -name '*.rpm' |xargs check_= macros |uniq files/i586/RPMS/kpowersave-0.4.5-alt1.i586.rpm DESCRIPTION %debug_pack= age files/i586/RPMS/chkfontpath-2.0.1-alt1.i586.rpm DESCRIPTION %post files/i586/RPMS/tex2im-1.8-alt1.i586.rpm URL %real files/i586/RPMS/libdvdplay-1.0.1-alt2.1.i586.rpm DESCRIPTION %li= bname files/i586/RPMS/alterator-backend-x11-0.3.7-alt1.i586.rpm SUMMARY %ba= ckend files/i586/RPMS/alterator-backend-x11-0.3.7-alt1.i586.rpm DESCRIPTION= %backend files/i586/RPMS/glibc-core-debug-2.3.5-alt5.i586.rpm DESCRIPTION %_s= pecdir files/i586/RPMS/glibc-devel-debug-2.3.5-alt5.i586.rpm DESCRIPTION %_s= pecdir files/i586/RPMS/gok-1.0.5-alt1.i586.rpm PREUN %_name files/i586/RPMS/glibc-nss-debug-2.3.5-alt5.i586.rpm DESCRIPTION %_s= pecdir files/i586/RPMS/powersave-0.9.25-alt2.i586.rpm POSTUN %postun_service files/i586/RPMS/apache2-suexec-2.0.54-alt1.i586.rpm POSTUN %postun_ser= vice files/i586/RPMS/mod_ssl-2.8.22-alt1.i586.rpm PREIN %postun files/i586/RPMS/php-mcrypt-4.3.12-alt0.cvs20050530.i586.rpm DESCRIPTION= %package_name files/i586/RPMS/purge-0.1-alt1.i586.rpm DESCRIPTION %purge files/i586/RPMS/abook-0.5.3-alt1.i586.rpm CHANGELOGNAME %rlz1 files/i586/RPMS/scilab-3.0-alt1.i586.rpm BASENAMES %i_1_s files/i586/RPMS/scilab-3.0-alt1.i586.rpm BASENAMES %i_2_s files/i586/RPMS/scilab-3.0-alt1.i586.rpm BASENAMES %i_3_s files/i586/RPMS/scilab-3.0-alt1.i586.rpm BASENAMES %i_4_s files/i586/RPMS/scilab-3.0-alt1.i586.rpm BASENAMES %i_Matplot [...] files/i586/RPMS/libnatspec-0.2.1-alt1.i586.rpm DESCRIPTION %Url files/i586/RPMS/webalizer-2.01.10-alt5.1.i586.rpm TRIGGERSCRIPTS %ap= ache_webmaster files/i586/RPMS/ups-monitor-0.6-alt1.i586.rpm BASENAMES %nam files/i586/RPMS/xmms-in-mac-0.2.1-alt2.1.i586.rpm DESCRIPTION %pa= ck_ver files/noarch/RPMS/MPlayer-skins-1.1.0-alt1.noarch.rpm DESCRIPTION %se= tup files/noarch/RPMS/oracle-preinstall-0.3-alt1.noarch.rpm PREIN %APACHE files/noarch/RPMS/perl-Spreadsheet-ParseExcel-0.2602-alt1.noarch.rpm URL= %module_dir files/noarch/RPMS/perl-Spreadsheet-ParseExcel-SaveParser-0.2602-alt1.noarch= .rpm URL %module_dir files/noarch/RPMS/urw-fonts-2.0-alt26.noarch.rpm POSTIN %ttfdir files/noarch/RPMS/xemacs-lookup-1.14-alt2.noarch.rpm POSTIN %xemacs_mul= e_package files/noarch/RPMS/xemacs-lookup-1.14-alt2.noarch.rpm PREUN %xemacs_mul= e_package files/noarch/RPMS/xemacs-skk-1.23-alt4.noarch.rpm POSTIN %xemacs_mul= e_package files/noarch/RPMS/xemacs-skk-1.23-alt4.noarch.rpm PREUN %xemacs_mul= e_package files/noarch/RPMS/perl-Module-CoreList-2.02-alt1.noarch.rpm DESCRIPTION= %Module files/noarch/RPMS/etersoft-build-utils-0.9-alt0.1.noarch.rpm DESCRIPTION= %Url files/noarch/RPMS/perl-Regexp-Common-2.120-alt1.noarch.rpm DESCRIPTION= %RE files/x86_64/RPMS/chkfontpath-2.0.1-alt1.x86_64.rpm DESCRIPTION %po= st files/x86_64/RPMS/glibc-core-debug-2.3.5-alt5.x86_64.rpm DESCRIPTION= %_specdir files/x86_64/RPMS/glibc-devel-debug-2.3.5-alt5.x86_64.rpm DESCRIPTION= %_specdir files/x86_64/RPMS/glibc-nss-debug-2.3.5-alt5.x86_64.rpm DESCRIPTION %_s= pecdir files/x86_64/RPMS/libnatspec-0.2.1-alt1.x86_64.rpm DESCRIPTION %Url [at@basalt Sisyphus]$ (=EE=C5 =D7=D3=A3 =D7 =DC=D4=CF=CD =D3=D0=C9=D3=CB=C5 =D2=C5=C1=CC=D8=CE=CF= =D1=D7=CC=D1=C5=D4=D3=D1 =CF=DB=C9=C2=CB=CF=CA.) --8EXHJdkEfksMlRxO Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=check_macros #!/usr/bin/perl for my $f (@ARGV) { use RPM::Header (); my $rpm = RPM::Header->new($f) or die "$f: $RPM::err"; while (my ($k, $v) = each %$rpm) { next if $k =~ /CHANGELOGTEXT|SIGGPG|SIGMD5|GIF/; my @v = ref($v) ? @$v : $v; my @lines = map { split /[\r\n]+/ } @v; foreach (@lines) { next if /^\s*#/; next unless /\%[a-zA-Z_][a-zA-Z0-9_]+/; print "$f $k $&\n"; } } } --8EXHJdkEfksMlRxO-- --sBvc846/5FzkyDmz Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQFC4PQgfBKgtDjnu0YRAuAbAKCaXKlIkvGVN2ztCNwSPNml0ZckywCcDbak ydG9/zu0BZhvt7oesOIdhl0= =wO4R -----END PGP SIGNATURE----- --sBvc846/5FzkyDmz--