Last change
on this file since 597 was
28,
checked in by arnault, 20 years ago
|
Set exe bits to *.sh
|
-
Property svn:eol-style set to
native
-
Property svn:executable set to
*
|
File size:
984 bytes
|
Line | |
---|
1 | |
---|
2 | |
---|
3 | set -x |
---|
4 | |
---|
5 | version=v1r14 |
---|
6 | |
---|
7 | #------------------------------------------------------------- |
---|
8 | # Setup a temporary directory |
---|
9 | #------------------------------------------------------------- |
---|
10 | |
---|
11 | #------------------------------------------------------------- |
---|
12 | # Install a local RPM database |
---|
13 | #------------------------------------------------------------- |
---|
14 | |
---|
15 | tempdir=/tmp/CMT |
---|
16 | |
---|
17 | rm -rf ${tempdir} |
---|
18 | |
---|
19 | database=${tempdir}/rpm-database |
---|
20 | |
---|
21 | mkdir -p ${database} |
---|
22 | |
---|
23 | rpm --dbpath ${database} --initdb |
---|
24 | rpm --dbpath ${database} -Uvh virtual.rpm |
---|
25 | |
---|
26 | rpm --dbpath ${database} -e CMT |
---|
27 | |
---|
28 | #------------------------------------------------------------- |
---|
29 | # Install from the bin RPM |
---|
30 | #------------------------------------------------------------- |
---|
31 | |
---|
32 | tempdir1=$1 |
---|
33 | |
---|
34 | if test "${tempdir1}" = ""; then |
---|
35 | tempdir1=/tmp/CMT1 |
---|
36 | rm -rf ${tempdir1} |
---|
37 | mkdir -p ${tempdir1} |
---|
38 | fi |
---|
39 | |
---|
40 | rpm --quiet --dbpath ${database} -Uvh --relocate /CMT=${tempdir1}/CMT \ |
---|
41 | ../rpm/CMT-${version}-1.i386.rpm |
---|
42 | |
---|
43 | source ${tempdir1}/CMT/${version}/mgr/setup.sh |
---|
44 | |
---|
45 | cmt version |
---|
46 | |
---|
47 | |
---|
48 | |
---|
49 | |
---|
Note: See
TracBrowser
for help on using the repository browser.