Last change
on this file since 2430 was 456, checked in by bcornec, 18 years ago |
Epoch has to be a number (EEE based on $REVISION)
|
-
Property svn:executable
set to
*
|
File size:
718 bytes
|
Rev | Line | |
---|
[388] | 1 | #!/bin/bash
|
---|
| 2 | #
|
---|
| 3 | # Creates SPEC file for RPMs packages from SVN repository
|
---|
| 4 | #
|
---|
| 5 | # 1st parameter: the version of the tool
|
---|
| 6 | # 2nd parameter: the original file to process
|
---|
| 7 | #
|
---|
| 8 | # $Id$
|
---|
| 9 | #
|
---|
| 10 |
|
---|
| 11 | dir=`dirname $2`
|
---|
| 12 | if [ -f ${dir}/../$ddir/spec.m4 ]; then
|
---|
| 13 | inc=${dir}/../$ddir/spec.m4
|
---|
[446] | 14 | elif [ -f ${dir}/../$dfam/spec.m4 ]; then
|
---|
| 15 | inc=${dir}/../$dfam/spec.m4
|
---|
[388] | 16 | else
|
---|
| 17 | echo "Unable to build RPM for this distro. Please report to authors"
|
---|
| 18 | exit -1
|
---|
| 19 | fi
|
---|
| 20 |
|
---|
| 21 | # Do not echo as stdout redirected
|
---|
| 22 | #echo "Using $inc customization to build SPEC file"
|
---|
| 23 |
|
---|
| 24 | cp $inc /tmp/mondorescue.mc
|
---|
| 25 | cat >> /tmp/mondorescue.mc << EOF
|
---|
| 26 | define(\`RRR', ${REVISION}${suf})dnl
|
---|
[456] | 27 | define(\`EEE', ${REVISION})dnl
|
---|
[388] | 28 | define(\`VVV', ${1})dnl
|
---|
| 29 | EOF
|
---|
| 30 | m4 /tmp/mondorescue.mc $2
|
---|
| 31 | rm -f /tmp/mondorescue.mc
|
---|
Note:
See
TracBrowser
for help on using the repository browser.