source: MondoRescue/branches/stable/tools/mkcommon @ 401

Last change on this file since 401 was 401, checked in by bcornec, 14 years ago
  • Integrate some SuSE patches and spec tips
  • all the doc is now under documentation (man pages, pdf, generated doc)
  • delivery process adapted consequently
  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1#!/bin/bash
2#
3# Prepare build env common for all packages build process from SVN repository
4#
5# $Id: mkcommon 401 2006-02-17 14:37:04Z 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 -f Makefile.howto install INSTALLDIR=../mondo-${MONDO_VER}/mondo/docs/en
55    make -f Makefile.man install-mindi INSTALLDIR=../mindi-${MINDI_VER}
56    make -f Makefile.man install-mondo INSTALLDIR=../mondo-${MONDO_VER}/docs/man
57    if [ $? != 0 ]; then
58        exit -1
59    fi
60    cd ../mondo-${MONDO_VER}
61    echo "Bootstraping mondo ... "
62    ./bootstrap
63    cd ..
64
65    echo "Creating mondo tar files"
66    tar cfhz ${TOPDIR}/SOURCES/mondo-${MONDO_VER}.tgz mondo-${MONDO_VER}
67    tar cfhj ${TOPDIR}/SOURCES/mondo-${MONDO_VER}.tar.bz2 mondo-${MONDO_VER}
68    rm -f ${TMP}/mondo-*-root
69fi
Note: See TracBrowser for help on using the repository browser.