[Pkg-multidistrotools-commits] r7 - in multidistrotools/trunk: .
scripts
Lucas Nussbaum
lucas at alioth.debian.org
Wed Mar 14 23:27:45 CET 2007
Author: lucas
Date: 2007-03-14 22:27:44 +0000 (Wed, 14 Mar 2007)
New Revision: 7
Removed:
multidistrotools/trunk/scripts/filter.rb
multidistrotools/trunk/scripts/list_diff.bash
multidistrotools/trunk/scripts/list_inter.bash
multidistrotools/trunk/scripts/list_sub.bash
multidistrotools/trunk/scripts/list_union.bash
Modified:
multidistrotools/trunk/mdt
Log:
removal of list_* and filter
Modified: multidistrotools/trunk/mdt
===================================================================
--- multidistrotools/trunk/mdt 2007-01-26 15:10:01 UTC (rev 6)
+++ multidistrotools/trunk/mdt 2007-03-14 22:27:44 UTC (rev 7)
@@ -15,11 +15,6 @@
'dist-bin2src' => [ $scriptsdir + 'dist-bin2src.py', 'Show source packages for binary packages using an APT tree' ],
'src2bin' => [ $scriptsdir + 'src2bin.bash', 'Show binary packages for source packages' ],
'unify' => [ $scriptsdir + 'unify.bash', 'Sort and remove duplicate lines' ],
- 'list_union' => [ $scriptsdir + 'list_union.bash', 'Write the union of two lists' ],
- 'list_inter' => [ $scriptsdir + 'list_inter.bash', 'Write the intersection of two lists' ],
- 'list_diff' => [ $scriptsdir + 'list_diff.bash', 'Write the difference of two lists' ],
- 'list_sub' => [ $scriptsdir + 'list_sub.bash', 'Write list1 minus list2' ],
- 'filter' => [ $scriptsdir + 'filter.rb', 'Filter lines on stdin with a file' ],
'sort_with' => [ $scriptsdir + 'sort_with.rb', 'Sort lines on stdin according to a file on stdout' ],
'versions_exclude_same' => [ $scriptsdir + 'versions_exclude_same.bash', 'Take a list of packages generated by compare-versions and exclude lines where the two versions are the same' ],
'popcon' => [ $scriptsdir + 'popcon.bash', 'List popcon results' ],
Deleted: multidistrotools/trunk/scripts/filter.rb
===================================================================
--- multidistrotools/trunk/scripts/filter.rb 2007-01-26 15:10:01 UTC (rev 6)
+++ multidistrotools/trunk/scripts/filter.rb 2007-03-14 22:27:44 UTC (rev 7)
@@ -1,29 +0,0 @@
-#!/usr/bin/ruby
-#
-# filterlist.rb
-# - Lucas Nussbaum <lucas at lucas-nussbaum.net>
-
-def usage
- puts <<EOF
-This script takes a list (list1) on STDIN, and a list (list2) as $1. It
-outputs the list of lines of list1 matching a word of list2 on STDOUT.
-
-Example:
-cat listwithallpkgs | filterlist.rb mypackages > filteredlistwithallpkgs
-EOF
-exit(0)
-end
-
-if ARGV.length == 0 or ARGV[0] == '--help'
- usage
-end
-
-h = Hash::new(false)
-IO::read(ARGV[0]).each_line do |l|
- h[l.chomp] = true
-end
-
-STDIN.each_line do |l|
- p, r = l.split(' ', 2)
- puts l if h[p]
-end
Deleted: multidistrotools/trunk/scripts/list_diff.bash
===================================================================
--- multidistrotools/trunk/scripts/list_diff.bash 2007-01-26 15:10:01 UTC (rev 6)
+++ multidistrotools/trunk/scripts/list_diff.bash 2007-03-14 22:27:44 UTC (rev 7)
@@ -1,15 +0,0 @@
-#!/bin/bash
-
-usage() {
- cat >/dev/stdout <<EOF
-Show the lines with are not in both files given as arguments.
-If one of the files is '-', stdin is used instead.
-EOF
-}
-
-if [ "$1" == '--help' -o $# -ne 2 ]; then
- usage
- exit 1
-fi
-
-diff --suppress-common-lines "$1" "$2" | grep -E '^(<|>)' | cut -c 3-
Deleted: multidistrotools/trunk/scripts/list_inter.bash
===================================================================
--- multidistrotools/trunk/scripts/list_inter.bash 2007-01-26 15:10:01 UTC (rev 6)
+++ multidistrotools/trunk/scripts/list_inter.bash 2007-03-14 22:27:44 UTC (rev 7)
@@ -1,16 +0,0 @@
-#!/bin/bash
-
-usage() {
- cat >/dev/stdout <<EOF
-Show the lines in common in the two files.
-If one of the files is '-', stdin is used instead.
-EOF
-}
-
-if [ "$1" == '--help' -o $# -ne 2 ]; then
- usage
- exit 1
-fi
-
-cat "$1" "$2" | sort | awk '{ if ($0 == l) { print $0 }; l = $0 }' | uniq
-
Deleted: multidistrotools/trunk/scripts/list_sub.bash
===================================================================
--- multidistrotools/trunk/scripts/list_sub.bash 2007-01-26 15:10:01 UTC (rev 6)
+++ multidistrotools/trunk/scripts/list_sub.bash 2007-03-14 22:27:44 UTC (rev 7)
@@ -1,15 +0,0 @@
-#!/bin/bash
-
-usage() {
- cat >/dev/stdout <<EOF
-Substract the second file from the first file given as arguments.
-If one of the files is '-', stdin is used instead.
-EOF
-}
-
-if [ "$1" == '--help' -o $# -ne 2 ]; then
- usage
- exit 1
-fi
-
-diff --suppress-common-lines "$1" "$2" | grep -E '^<' | cut -c 3-
Deleted: multidistrotools/trunk/scripts/list_union.bash
===================================================================
--- multidistrotools/trunk/scripts/list_union.bash 2007-01-26 15:10:01 UTC (rev 6)
+++ multidistrotools/trunk/scripts/list_union.bash 2007-03-14 22:27:44 UTC (rev 7)
@@ -1,15 +0,0 @@
-#!/bin/bash
-
-usage() {
- cat >/dev/stdout <<EOF
-Merges the two files given as arguments. If one of the files is
-'-', stdin is used instead.
-EOF
-}
-
-if [ "$1" == '--help' -o $# -ne 2 ]; then
- usage
- exit 1
-fi
-
-cat "$1" "$2" | sort | uniq
More information about the Pkg-multidistrotools-commits
mailing list