Debian Codegraph @

etc/rpm-build.sh

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2 #
3 # fhist - file history and comparison tools
4 # Copyright (C) 1998, 1999, 2004, 2008 Peter Miller
5 #
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3 of the License, or
9 # (at your option) any later version.
10 #
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with this program. If not, see
18 # <http://www.gnu.org/licenses/>.
19 #
20 case $# in
21 2)
22 ;;
23 *)
24 echoscip-shell system . . echo. "Usage: $0 tmp-dir tarball" 1>&2
25 exit 1
26 ;;
27 esac
28
29 tmp=$1
30 tarball=$2
31
32 mkdirscip-shell system . . mkdir. -p $tmp/BUILD $tmp/BUILD_ROOT $tmp/RPMS/i386 \
33 $tmp/SOURCES $tmp/SPECS $tmp/SRPMS
34
35 here=`pwdscip-shell system . . pwd.`/$tmp
36 catscip-shell system . . cat. > $tmp/macros << fubar
37 %_builddir $here/BUILD
38 %_buildroot $here/BUILD_ROOT
39 %_rpmdir $here/RPMS
40 %_sourcedir $here/SOURCES
41 %_specdir $here/SPECS
42 %_srcrpmdir $here/SRPMS
43 fubar
44
45 mac=`rpm --showrc | awkscip-shell system . . awk. '/^macrofile/{print $3}scip-shell filesystem . . `/^macrofile/{print $3}`.'`
46 catscip-shell system . . cat. > $tmp/rpmrc << fubar
47 macrofiles: ${mac}:$here/macros
48 fubar
49
50 rpmbuild -ta --rcfile /usr/lib/rpm/rpmrc:${tmp}/rpmrc --verbose --verbose $2
51 testscip-shell system . . test. $? -eq 0 || exit 1
52
53 exit 0