source: trunk/tools/mkcommon @ 394

Last change on this file since 394 was 394, checked in by bcornec, 14 years ago

merge -r387:391 $SVN_M/branches/stable

  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1#!/bin/bash
2#
3# Prepare build env common for all packages build process from SVN repository
4#
5# $Id: mkcommon 394 2006-02-15 10:44:31Z bcornec $
6#
7
8umask 022
9
10echo "Generating SVN log file ..."
11cd $TOOLHOME/..
12svn log -v > /tmp/mondorescue-svn.log
13
14if [ "$1" = "" ]; then
15    c="mindi mondo"
16else
17    c=$1
18fi
19if [ "`echo $c | grep mindi-kernel`" != "" ]; then
20    cd ${BASE}/svn
21    echo "Management of mindi-kernel ${MINDI_VER}-$REVISION"
22    rm -fr mindi-kernel-${MINDI_VER}
23    svn export ${VER}/mindi-kernel mindi-kernel-${MINDI_VER}
24    mkdir -p ${TOPDIR}/SOURCES
25
26    echo "Creating mindi-kernel tar files"
27    tar cvfhz ${TOPDIR}/SOURCES/mindi-kernel-${MINDI_VER}.tgz mindi-kernel-${MINDI_VER}
28    tar cvfhj ${TOPDIR}/SOURCES/mindi-kernel-${MINDI_VER}.tar.bz2 mindi-kernel-${MINDI_VER}
29fi
30if [ "`echo $c | grep -v kernel | grep mindi`" != "" ]; then
31    cd ${BASE}/svn
32    echo "Management of mindi ${MINDI_VER}-$REVISION"
33    rm -fr mindi-${MINDI_VER}
34    svn export ${VER}/mindi mindi-${MINDI_VER}
35    cp -a /tmp/mondorescue-svn.log mindi-${MINDI_VER}/svn.log
36    echo "$REVISION" > mindi-${MINDI_VER}/REVISION
37    rm -f mindi-${MINDI_VER}/rootfs/sbin/parted2fdisk-ia64
38
39    echo "Creating mindi tar files"
40    tar cfhz ${TOPDIR}/SOURCES/mindi-${MINDI_VER}.tgz mindi-${MINDI_VER}
41    tar cfhj ${TOPDIR}/SOURCES/mindi-${MINDI_VER}.tar.bz2 mindi-${MINDI_VER}
42    rm -f ${TMP}/mindi-*-root
43fi
44if [ "`echo $c | grep  mondo`" != "" ]; then
45    cd ${BASE}/svn
46    echo "Management of mondo ${MONDO_VER}-$REVISION"
47    rm -rf mondo-${MONDO_VER}
48    svn export ${VER}/mondo mondo-${MONDO_VER}
49    cp -a /tmp/mondorescue-svn.log mondo-${MONDO_VER}/svn.log
50    echo "$REVISION" > mondo-${MONDO_VER}/REVISION
51    rm -rf documentation-${MONDO_VER}
52    svn export ${VER}/documentation documentation-${MONDO_VER}
53    cd documentation-${MONDO_VER}
54    make install INSTALLDIR=../mondo-${MONDO_VER}/mondo/docs/en
55    if [ $? != 0 ]; then
56        exit -1
57    fi
58    cd ../mondo-${MONDO_VER}
59    echo "Bootstraping mondo ... "
60    ./bootstrap
61    cd ..
62
63    echo "Creating mondo tar files"
64    tar cfhz ${TOPDIR}/SOURCES/mondo-${MONDO_VER}.tgz mondo-${MONDO_VER}
65    tar cfhj ${TOPDIR}/SOURCES/mondo-${MONDO_VER}.tar.bz2 mondo-${MONDO_VER}
66    rm -f ${TMP}/mondo-*-root
67fi
Note: See TracBrowser for help on using the repository browser.