SVN: people/hawk/ftp_admin/broken-deps-check.sh

hawk hawk at pld-linux.org
Wed Feb 20 12:30:27 CET 2008


Author: hawk
Date: Wed Feb 20 12:30:27 2008
New Revision: 9468

Added:
   people/hawk/ftp_admin/broken-deps-check.sh   (contents, props changed)
Log:
- simple shell script for generating html page with list
  of broken dependencies


Added: people/hawk/ftp_admin/broken-deps-check.sh
==============================================================================
--- (empty file)
+++ people/hawk/ftp_admin/broken-deps-check.sh	Wed Feb 20 12:30:27 2008
@@ -0,0 +1,58 @@
+#!/bin/sh
+
+file_header()
+{
+cat > $2 << EOF
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
+  <link rel="StyleSheet" href="styles.css" type="text/css">
+  <title>PLD Titanium Info Page</title>
+</head>
+<body>
+<pre>
+EOF
+echo -e "Broken dependencies in PLD Titanium $1 main tree, $(date +'%d %B %Y, %H:%M')\nNote: some unavoidable broken deps have been filtered out\n"  >> $2
+}
+
+file_footer()
+{
+echo "$(egrep "^error: " $1 | wc -l) unsatisfied dependencies found" >> $1
+cat >> $1 << EOF
+</pre>
+</body>
+</html>
+EOF
+}
+
+gen_list()
+{
+/usr/bin/poldek -O "auto directory dependencies = yes" --ignore "*-debuginfo-*" --verify=deps -Q $2 | \
+  egrep -v "(FileDigestParameterized|unsatisfied dependencies found|-multilib-|zsh/latest/functions|VirtualBox.*libc\.so\.6)" | \
+  grep -v "uname(release)" >> $1
+}
+
+check_deps()
+{
+list_name="$HOME/www/$1-main-broken-deps.html"
+file_header $1 $list_name
+gen_list $list_name "-s $HOME/ftp/PLD/$1/RPMS/ -s $HOME/ftp/PLD/noarch/RPMS/"
+file_footer $list_name
+
+list_name="$HOME/www/$1-main+ready-broken-deps.html"
+file_header $1 $list_name
+gen_list $list_name "-s $HOME/ftp/PLD/$1/RPMS/ -s $HOME/ftp/PLD/noarch/RPMS/ -s $HOME/ftp/ready/$1/RPMS/ -s $HOME/ftp/ready/noarch/RPMS/"
+file_footer $list_name
+
+list_name="$HOME/www/$1-main+ready+test-broken-deps.html"
+file_header $1 $list_name
+gen_list $list_name "-s $HOME/ftp/PLD/$1/RPMS/ -s $HOME/ftp/PLD/noarch/RPMS/ -s $HOME/ftp/ready/$1/RPMS/ -s $HOME/ftp/ready/noarch/RPMS/ -s $HOME/ftp/test/$1/RPMS/ -s $HOME/ftp/test/noarch/RPMS/"
+file_footer $list_name
+}
+
+check_deps i586
+check_deps i686
+check_deps x86_64
+
+chmod 644 $HOME/www/*.txt


More information about the pld-cvs-commit mailing list