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

Last change on this file since 339 was 339, checked in by bcornec, 15 years ago

This version is stable so VESION files updated

  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 2.8 KB
Line 
1#!/bin/bash
2#
3# Prepare build env common for all packages build process from SVN repository
4#
5# $Id: mkcommon 339 2006-01-20 00:05:35Z 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    #cp -a ${VER}/mindi-kernel mindi-kernel-${MINDI_VER}
25    #find mindi-kernel-${MINDI_VER} -type d -name .svn | xargs rm -rf
26    #find mindi-kernel-${MINDI_VER} -type f -name '.*.swp' | xargs rm -rf
27    #find mindi-kernel-${MINDI_VER} -type f -name '*~' | xargs rm -rf
28    mkdir -p ${TOPDIR}/SOURCES
29
30    echo "Creating mindi-kernel tar files"
31    tar cvfhz ${TOPDIR}/SOURCES/mindi-kernel-${MINDI_VER}.tgz mindi-kernel-${MINDI_VER}
32    tar cvfhj ${TOPDIR}/SOURCES/mindi-kernel-${MINDI_VER}.tar.bz2 mindi-kernel-${MINDI_VER}
33fi
34if [ "`echo $c | grep -v kernel | grep mindi`" != "" ]; then
35    cd ${BASE}/svn
36    echo "Management of mindi ${MINDI_VER}-$REVISION"
37    rm -fr mindi-${MINDI_VER}
38    svn export ${VER}/mindi mindi-${MINDI_VER}
39    #cp -a ${VER}/mindi mindi-${MINDI_VER}
40    cp -a /tmp/mondorescue-svn.log mindi-${MINDI_VER}/svn.log
41    echo "$REVISION" > mindi-${MINDI_VER}/REVISION
42    #find mindi-${MINDI_VER} -type d -name .svn | xargs rm -rf
43    #find mindi-${MINDI_VER} -type f -name '.*.swp' | xargs rm -rf
44    #find mindi-${MINDI_VER} -type f -name '*~' | xargs rm -rf
45    rm -f mindi-${MINDI_VER}/rootfs/sbin/parted2fdisk-ia64
46    #rm -f mindi-${MINDI_VER}/parted2fdisk mindi-${MINDI_VER}/parted2fdisk.c mindi-${MINDI_VER}/rootfs/sbin/parted2fdisk-ia64
47
48    echo "Creating mindi tar files"
49    tar cfhz ${TOPDIR}/SOURCES/mindi-${MINDI_VER}.tgz mindi-${MINDI_VER}
50    tar cfhj ${TOPDIR}/SOURCES/mindi-${MINDI_VER}.tar.bz2 mindi-${MINDI_VER}
51    rm -f ${TMP}/mindi-*-root
52fi
53if [ "`echo $c | grep  mondo`" != "" ]; then
54    cd ${BASE}/svn
55    echo "Management of mondo ${MONDO_VER}-$REVISION"
56    rm -rf mondo-${MONDO_VER}
57    svn export ${VER}/mondo mondo-${MONDO_VER}
58    #cp -a ${VER}/mondo mondo-${MONDO_VER}
59    cp -a /tmp/mondorescue-svn.log mondo-${MONDO_VER}/svn.log
60    echo "$REVISION" > mondo-${MONDO_VER}/REVISION
61    rm -rf documentation-${MONDO_VER}
62    svn export ${VER}/documentation documentation-${MONDO_VER}
63    cd documentation-${MONDO_VER}
64    make install INSTALLDIR=../mondo-${MONDO_VER}/mondo/docs/en
65    cd ../mondo-${MONDO_VER}
66    echo "Bootstraping mondo ... "
67    ./bootstrap
68    #find . -type d -name .svn | xargs rm -rf
69    #find . -type f -name '.*.swp' | xargs rm -rf
70    #find . -type f -name '*~' | xargs rm -rf
71    cd ..
72
73    echo "Creating mondo tar files"
74    tar cfhz ${TOPDIR}/SOURCES/mondo-${MONDO_VER}.tgz mondo-${MONDO_VER}
75    tar cfhj ${TOPDIR}/SOURCES/mondo-${MONDO_VER}.tar.bz2 mondo-${MONDO_VER}
76    rm -f ${TMP}/mondo-*-root
77fi
Note: See TracBrowser for help on using the repository browser.