source: projects/self-build-setup/tags/1.0.2/check-self-build.sh @ 419

Revision 419, 435 bytes checked in by munepi, 14 years ago (diff)

added self-build-setup

  • Property svn:executable set to *
Line 
1#!/bin/bash
2#
3# Helper script for self-build rpm package.
4# arguments :list of to be installed/upgraded package name
5
6TEXTDOMAIN=self-build-setup
7TEXTDOMAINDIR=/usr/share/locale
8
9COUNT=0
10
11for f in $@ ; do
12    if echo $f | grep -e ^self-build > /dev/null ; then
13        COUNT=`expr $COUNT + 1`
14    fi
15done
16
17if [ $COUNT -ge 2 ] ; then
18    echo $"*ERROR: can't install more than 2 self-build pakcages at same time."
19    exit 1
20fi
21
22exit 0
Note: See TracBrowser for help on using the repository browser.