source: soft/build_system/build_system/upload/robot/trunk/check_bad_cvs_spec.sh @ 1

Last change on this file since 1 was 1, checked in by fasma, 13 years ago

Initial Import from Mandriva's soft revision 224062 and package revision 45733

File size: 1.8 KB
Line 
1#!/bin/sh
2#---------------------------------------------------------------
3# Project         : Mandrake Linux
4# Module          : robot
5# File            : check_bad_cvs_spec.sh
6# Version         : $Id: check_bad_cvs_spec.sh 869 2004-07-21 08:33:11Z mandrake $
7# Author          : Frederic Lepied
8# Created On      : Wed Jul 23 08:12:42 2003
9#---------------------------------------------------------------
10
11set -e
12
13srpm=$1
14
15name=`rpm -qp --qf '%{NAME}\n' $srpm`
16
17case $name in
18        DrakConf|DrakProfile|DrakSQL|DrakSync|DrakeLogo|GLwrapper|GtkMdkWidgets|MAKEDEV|MandrakeUpdate|RpmDrake|apm-scripts|bootlookdrake|bootsplash|bugs|bus|bus-www|chkauth|common|control-center|dist-upgrade|distriblint|drakbootdisk|drakbug|drakcronat|drakfont|draksec|dynamic|eazel-engine|etcskel|ftw|galaxy|glozeur|ààharddrake2|howto-utils|initscripts|isdn|kdebase-servicemenu|krootwarning|krozat|ldetect|ldetect-lst|libsafe|lsec|mailcap|mailint|makedev|mandrake-mime|mandrake-scripts|mandrake_desk|mdkhelper|mdkhtmlbrowser|mdkkdm|mdklaunchhelp|mdkonline|menu-messages|menudrake|mkcd|moneydrake|mountloop|msec|netprofile|numlock|perl-MDK-Common|perl-URPM|postup|prelude|repy|rfbdrake|rootfiles|rpm-helper|rpm-rebuilder|rpmdrake|rpmlint|rpmstats|rpmtools|setup|smbdrake|spec-helper|spring|sshd-monitor|suspend-scripts|transfugdrake|urpmi|userdrake|userdrake2|wizard_perl|xinitrc|kernel-utils)
19            module=$name;;
20        *)
21            # package not controlled under cvs
22            exit 1;;
23esac
24
25TMPDIR=${TMDIR=/tmp}
26dir=`mktemp -d $TMPDIR/check_cvsXXXXXX`
27
28if [ -z "$dir" -o ! -d "$dir" ]; then
29    echo "unable to create temporary directory" 1>&2
30    exit 1
31fi
32
33trap "rm -rf $dir" 0
34
35rpm2cpio $srpm | (cd $dir; cpio --quiet -id \*.spec)
36
37cd $dir
38cvs -d cvs:/home/cvs/cooker -Q co $name/$name.spec
39
40cmp -s *.spec $name/$name.spec
41
42[ $? != 0 ]
43
44# check_bad_cvs_spec.sh ends here
Note: See TracBrowser for help on using the repository browser.