Line | |
---|
1 | #!/bin/bash
|
---|
2 | # packt die srpms in eigene Unterverzeichnisse aus und ruft das build.sh skript
|
---|
3 | # von Ingo Börnig auf
|
---|
4 | # $Id: buildall_srpms.sh,v 1.1 2002/09/16 16:36:55 joergs Exp $
|
---|
5 |
|
---|
6 | if [ -z "$1" ]; then
|
---|
7 | echo "$0 buildlist"
|
---|
8 | exit 1
|
---|
9 | fi
|
---|
10 |
|
---|
11 | my_pwd=$PWD
|
---|
12 |
|
---|
13 | echo "PWD: $my_pwd"
|
---|
14 |
|
---|
15 | #set -x
|
---|
16 |
|
---|
17 | smartclient_root="../../";
|
---|
18 |
|
---|
19 | for i in `cat $1`; do
|
---|
20 | cd $smartclient_root/`dirname $i`
|
---|
21 | basename=`basename $i`
|
---|
22 | src_dir=`echo $basename | sed 's/.src.rpm//'`
|
---|
23 | mkdir $src_dir
|
---|
24 | cd $src_dir
|
---|
25 | rpm2cpio ../$basename | cpio -i
|
---|
26 | echo "Building packages $i:----------------------"
|
---|
27 | build.sh
|
---|
28 | cd $my_pwd
|
---|
29 | done
|
---|
Note:
See
TracBrowser
for help on using the repository browser.