diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2000-03-30 14:35:23 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2000-03-30 14:35:23 +0000 |
commit | 18011f2e9d699e37c6da8bec2d02de2b84a96a85 (patch) | |
tree | fdf782dfce0c929d31fe317a8b22c62518c19f56 /tools | |
parent | ed9b8286889057ba6a4983d4afb266d74cac20f0 (diff) | |
download | drakx-backup-do-not-use-18011f2e9d699e37c6da8bec2d02de2b84a96a85.tar drakx-backup-do-not-use-18011f2e9d699e37c6da8bec2d02de2b84a96a85.tar.gz drakx-backup-do-not-use-18011f2e9d699e37c6da8bec2d02de2b84a96a85.tar.bz2 drakx-backup-do-not-use-18011f2e9d699e37c6da8bec2d02de2b84a96a85.tar.xz drakx-backup-do-not-use-18011f2e9d699e37c6da8bec2d02de2b84a96a85.zip |
no_comment
Diffstat (limited to 'tools')
-rw-r--r-- | tools/Makefile | 3 | ||||
-rwxr-xr-x | tools/gencompss | 14 |
2 files changed, 17 insertions, 0 deletions
diff --git a/tools/Makefile b/tools/Makefile index 7c6281459..bece8e754 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -24,6 +24,9 @@ xhost+: %: %.c ddcprobe/ddcxinfos: $(MAKE) -C ddcprobe ddcxinfos +$(BASE)/compss: $(BASE)/hdlists $(BASE)/hdlist.cz2 + ./gencompss `cat $< | perl -pe 's|(.*)|'$(BASE)'/$$1|' ` > $@ + $(BASE)/depslist: $(BASE)/hdlists $(BASE)/hdlist.cz2 gendepslist2 -o $@ `cat $< | perl -pe 's|(.*)|'$(BASE)'/$$1|' ` diff --git a/tools/gencompss b/tools/gencompss new file mode 100755 index 000000000..b26ef7c2c --- /dev/null +++ b/tools/gencompss @@ -0,0 +1,14 @@ +#!/usr/bin/perl + +open F, "bzip2 -dc @ARGV 2>/dev/null | hdlist2groups - |"; +foreach (<F>) { + chop; + /(.*):(.*)/; + push @{$l{$2}}, $1; +} +close F or die; +foreach (sort keys %l) { + print "$_\n"; + print "\t$_\n" foreach sort @{$l{$_}}; + print "\n"; +} |