root/trunk/redhat/build

Revision 42, 485 bytes (checked in by bombadil, 19 months ago)

reestructurada

  • Property svn:executable set to *
Line 
1#!/bin/sh
2
3cd $(dirname $0)/..
4BASE=$(basename $(pwd))
5cd ..
6DIR=$BASE/redhat
7
8DST=/usr/src/redhat/SOURCES
9
10oak() {
11    VERSION=`grep Version $DIR/oak-framework.spec | cut -d: -f2 | tr -d " "`
12    RELEASE=`grep Release $DIR/oak-framework.spec | cut -d: -f2 | tr -d " "`
13    tar czf $DST/oak-framework_$VERSION-$RELEASE.tar.gz --exclude .svn $(basename $BASE)
14    rpmbuild -ba $DIR/oak-framework.spec
15}
16
17case "$1" in
18    "oak")
19        oak
20        ;;
21    *)
22        oak
23        ;;
24esac
Note: See TracBrowser for help on using the browser.