[27295] in Source-Commits

home help back first fref pref prev next nref lref last post

scripts commit: Remove obsolete scripts

daemon@ATHENA.MIT.EDU (Jonathan D Reed)
Wed Sep 25 10:22:38 2013

Date: Wed, 25 Sep 2013 10:18:59 -0400
From: Jonathan D Reed <jdreed@MIT.EDU>
Message-Id: <201309251418.r8PEIxPM005319@drugstore.mit.edu>
To: source-commits@MIT.EDU

https://github.com/mit-athena/scripts/commit/9d45fbd9940b14dc982cf87d139ec2056d22a287
commit 9d45fbd9940b14dc982cf87d139ec2056d22a287
Author: Jonathan Reed <jdreed@mit.edu>
Date:   Fri Sep 20 12:29:34 2013 -0400

    Remove obsolete scripts
    
    Delete check-unbuilt-packages and ood-packages which are now
    obsolete (replaced by check-packages.py)

 check-unbuilt-packages |    9 ----
 ood-packages           |  114 ------------------------------------------------
 2 files changed, 0 insertions(+), 123 deletions(-)

diff --git a/check-unbuilt-packages b/check-unbuilt-packages
deleted file mode 100755
index 6300f28..0000000
--- a/check-unbuilt-packages
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-
-while read package path; do
-    svnversion=$(svn cat svn+ssh://svn.mit.edu/athena/trunk/"$path"/debian/changelog | dpkg-parsechangelog -l- | sed -n 's/^Version: //p')
-    aptversion=$(apt-cache showsrc "$package" | sed -n 's/^Version: //p')
-    if [ "$svnversion" != "$aptversion" ]; then
-        echo "$package is $svnversion in svn and $aptversion in apt"
-    fi
-done < /mit/debathena/packages/packages
diff --git a/ood-packages b/ood-packages
deleted file mode 100755
index 3f04e47..0000000
--- a/ood-packages
+++ /dev/null
@@ -1,114 +0,0 @@
-#!/bin/sh
-
-# Usage: ood-packages [-c|-r] [LOCATION]
-
-# Outputs a list of package names which are out of date in the apt
-# repository relative to the source tree.  This script only deals with
-# regular Debian package sources, not equivs-built packages or
-# debathenify packages.  This scripts assumes gen-packages has been
-# run to create the packages file.
-
-# If -c is specified, scans a checkout for current version
-# information.  If -r is specified, scans the repository.  -r is the
-# default.  Using a checkout is faster but will give the wrong results
-# if the checkout is not up to date.  This script is kind of slow
-# regardless, due to all of the reprepro invocations.
-
-# If LOCATION is specified, it is used in preference to the canonical
-# Athena repository trunk or the canonical source checkout.
-
-set -e
-
-: ${DA_SCRIPTS_DIR="$(dirname "$0")"}
-. "$DA_SCRIPTS_DIR"/debian-versions.sh
-
-die() {
-  echo "$@" >&2
-  exit 1
-}
-
-usage() {
-  die "ood-packages [-r|-c] [LOCATION]"
-}
-
-type=repos
-
-while getopts cr opt; do
-  case "$opt" in
-  c)
-    type=checkout
-    ;;
-  r)
-    type=repos
-    ;;
-  \?)
-    usage
-    ;;
-  esac
-done
-
-shift $(($OPTIND - 1))
-if [ $# -gt 0 ]; then
-  loc=$1
-elif [ $type = repos ]; then
-  loc=svn+ssh://svn.mit.edu/athena/trunk
-else
-  loc=/afs/dev.mit.edu/source/src-svn
-fi
-
-packages=packages
-
-if [ ! -r "$packages" ]; then
-    packages=/mit/debathena/packages/packages
-fi
-if [ ! -r "$packages" ]; then
-  echo "Can't read packages file; create with gen-packages." >&2
-  exit 1
-fi
-
-exec <"$packages"
-while read pkg path; do
-  # Get the version from the apt repository, checking that it is
-  # consistent across all dists.
-  lastver=
-  for dist in $DEBIAN_CODES; do
-    if dareprepro list "${dist}-proposed" "$pkg" | grep -q 'source: '; then
-      release=-proposed
-    else
-      release=''
-    fi
-    aptver=$(dareprepro list "${dist}${release}" "$pkg" \
-          | awk '/source:/ { print $3 }')
-    if [ -n "$lastver" -a "x$aptver" != "x$lastver" ]; then
-      echo -n "WARNING: Inconsistent versions for $pkg: "
-      echo "$lastdist $lastver != $dist $aptver" >&2
-    fi
-    lastver=$aptver
-    lastdist=$dist
-  done
-
-  # Get the current version from the checkout or repository.
-  if [ $type = repos ]; then
-    svn cat $loc/$path/debian/changelog > changelog
-    cfile=changelog
-  else
-    cfile=$loc/$path/debian/changelog
-  fi
-  curver=$(dpkg-parsechangelog -l$cfile | sed -n 's/Version: //p')
-
-  # Display the package name if the apt repository version does not
-  # match the current version.
-  if [ "x$aptver" != "x$curver" ]; then
-    case "$pkg" in 
-      debathena-linerva*)
-      ;;
-      *)
-        echo "$pkg"
-      ;;
-    esac
-  fi
-done
-
-if [ $type = repos ]; then
-  rm -rf changelog
-fi

home help back first fref pref prev next nref lref last post