From 8af2ba71ac1e86dd9cde0e432fac926f9222d983 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Fri, 16 Nov 2012 16:21:40 +0900 Subject: [PATCH] test-rebuild.sh: moved to haskell-sig/bin --- test-rebuild.sh | 41 ----------------------------------------- 1 file changed, 41 deletions(-) delete mode 100755 test-rebuild.sh diff --git a/test-rebuild.sh b/test-rebuild.sh deleted file mode 100755 index bf9e4c0..0000000 --- a/test-rebuild.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/sh - -set -e - -PKG=${1:-$(fedpkg gimmespec | sed -e "s/.spec//")} - -[ -d "$PKG" -o -f "$PKG.spec" ] || fedpkg clone -a $PKG - -[ -d "$PKG" ] && cd $PKG - -ARCH=$(arch) - -#if [ -d $ARCH ]; then -# echo Please move existing $ARCH/ -# exit 1 -#fi - -if [ -n "$2" ]; then - fedpkg switch-branch $2 -fi - -sudo yum-builddep $PKG.spec - -fedpkg local - -VERREL=$(fedpkg verrel | sed -e "s/^$PKG-//") - -TMP=test-tmp - -mkdir -p $TMP/ - -PKGS=$(cd $ARCH; rpm -qp $(ls *-$VERREL*.rpm)) - -for i in $PKGS; do - rpm -q --quiet $i || sudo yum install -q $i - for k in list requires provides scripts; do - rpm -qp --$k $ARCH/$i.rpm | grep -v rpmlib > $TMP/$i.$k.test || : - rpm -q --$k $i | grep -v rpmlib > $TMP/$i.$k.installed || : - diff -u $TMP/$i.$k.installed $TMP/$i.$k.test || : - done -done