source: trunk/technical/common/build/unpack_srpm.sh@ 612

Last change on this file since 612 was 612, checked in by ahuck, on Sep 18, 2002 at 2:36:56 PM

minor enhancements to buildall.pl,
buildlist contains the src.rpms as well (without version number),
unpack_srpm.sh accepts *.srpm as parameter and unpack in directories
omitting the version number

File size: 717 bytes
Line 
1#!/bin/bash
2# packt die srpms in eigene Unterverzeichnisse aus
3# wobei die Versionsnummern nicht berücksichtigt werden
4# $Id: unpack_srpm.sh,v 1.2 2002/09/18 12:36:56 ahuck Exp $
5# $Id: unpack_srpm.sh,v 1.2 2002/09/18 12:36:56 ahuck Exp $
6# the buildall.sh script should be used after extracting the
7# package - without dependence on version numbers in this directory
8
9if [ $# -le 1 ]
10 then
11 echo "Bitte alle srpm als Parameter übergeben, z.B. *.src.rpm";
12 exit 1;
13fi
14
15for i in $*; do shortname=`echo $i | sed 's/-[0-9]*\..*.src.rpm//'`; \
16 echo "Unpacking $i into directory $shortname "; \
17 mkdir $shortname; \
18 cd $shortname; \
19 rpm2cpio ../$i |cpio -i; \
20 cd ..; \
21 done
22
Note: See TracBrowser for help on using the repository browser.