diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2004-07-09 04:11:25 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2004-07-09 04:11:25 +0000 |
commit | 0344a3b5e4c6b9a261c1c0a17f3cb6f647364b23 (patch) | |
tree | fec812a3f310cacd9e061f3a46194eeb521c1844 /perl-install | |
parent | 7e2907ae1c1c48c619f37371b73a3fe3002153f5 (diff) | |
download | drakx-0344a3b5e4c6b9a261c1c0a17f3cb6f647364b23.tar drakx-0344a3b5e4c6b9a261c1c0a17f3cb6f647364b23.tar.gz drakx-0344a3b5e4c6b9a261c1c0a17f3cb6f647364b23.tar.bz2 drakx-0344a3b5e4c6b9a261c1c0a17f3cb6f647364b23.tar.xz drakx-0344a3b5e4c6b9a261c1c0a17f3cb6f647364b23.zip |
ensure "*" to wildcard a directory in share/list match only once
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/Makefile b/perl-install/Makefile index b23460334..3c20cbb38 100644 --- a/perl-install/Makefile +++ b/perl-install/Makefile @@ -82,7 +82,7 @@ get_needed_files: $(DIRS) mo_files eval `perl -V:version`; \ cat share/list `../tools/specific_arch share/list` | \ perl -pe "s/ARCH/$(ARCH)/g ; s/PERL_VERSION/$$version/g ; s|/LIB/|/$(LIB)/|g " | \ - perl -lpe '@l = glob; !m|\*.*/| || @l == 1 and $$_ = join("\n", @l)' > /tmp/list + perl -lpe '@l = glob; m|\*.*/| && @l != 1 and die "no/multiple match for $$_\n"; $$_ = join("\n", @l)' > /tmp/list rpm -ql perl-Gtk2 perl-Glib | grep '^/usr/lib/perl5' | grep -v '\.pod$$' >> /tmp/list @missing=`perl -lne 'print if !-e $$_' /tmp/list`; [ -z "$$missing" ] || { echo "missing or multiple files vvvvvvvvvvvvvvvvvvvvvvvvvv" ; echo "$$missing" ; echo "missing or multiple files ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^" ; exit 1; } |