-
Notifications
You must be signed in to change notification settings - Fork 100
/
Copy pathbuild.sh
executable file
·53 lines (46 loc) · 993 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
mdLine/gCmdLine/g
# Copyright (c) 2011, Intel Corporation.
#
mdLine/gCmdLine/g
mdLine/gCmdLine/g
mdLine/gCmdLine/g
#
mdLine/gCmdLine/g
#
mdLine/gCmdLine/g
mdLine/gCmdLine/g
mdLine/gCmdLine/g
mdLine/gCmdLine/g
mdLine/gCmdLine/g
#
RPMCOMPILEDIR=$1
RPMSPECFILE=$2
RPMSRCFILE=$3
mdLine/gCmdLine/g
mdLine/gCmdLine/g
mdLine/gCmdLine/g
mdLine/gCmdLine/g
mdLine/gCmdLine/g
mdLine/gCmdLine/g
echo ""
}
mdLine/gCmdLine/g
if [[ $EUID -eq 0 ]]; then
mdLine/gCmdLine/g
exit
fi
if [ -z $RPMCOMPILEDIR ] || [ -z $RPMSPECFILE ] || [ -z $RPMSRCFILE ]; then
mdLine/gCmdLine/g
exit
fi
mdLine/gCmdLine/g
mdLine/gCmdLine/g
mdLine/gCmdLine/g
rm -rf $RPMCOMPILEDIR
mkdir -p $RPMCOMPILEDIR/{BUILDROOT,BUILD,RPMS,S{OURCE,PEC,RPM}S}
cp -p $RPMSRCFILE.tar.gz $RPMCOMPILEDIR
cp -p $RPMSRCFILE.tar.gz $RPMCOMPILEDIR/SOURCES
cp -p ${RPMSPECFILE} $RPMCOMPILEDIR/SPECS
cd $RPMCOMPILEDIR/SPECS
rpmbuild --define "_topdir ${RPMCOMPILEDIR}" --define "_major $MAJOR" --define "_minor $MINOR" -ba ${RPMSPECFILE}
exit