source: trunk/tools/mkcommon @ 320

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

merge -r316:319 $SVN_M/branches/2.06

  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1#!/bin/bash
2#
3# Prepare build env common for all packages build process from SVN repository
4#
5# $Id: mkcommon 320 2006-01-14 23:29:12Z 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    cp -a ${VER}/mindi-kernel mindi-kernel-${MINDI_VER}
24    find mindi-kernel-${MINDI_VER} -type d -name .svn | xargs rm -rf
25    find mindi-kernel-${MINDI_VER} -type f -name '.*.swp' | xargs rm -rf
26    find mindi-kernel-${MINDI_VER} -type f -name '*~' | xargs rm -rf
27    mkdir -p ${TOPDIR}/SOURCES
28
29    echo "Creating mindi-kernel tar files"
30    tar cvfhz ${TOPDIR}/SOURCES/mindi-kernel-${MINDI_VER}.tgz mindi-kernel-${MINDI_VER}
31    tar cvfhj ${TOPDIR}/SOURCES/mindi-kernel-${MINDI_VER}.tar.bz2 mindi-kernel-${MINDI_VER}
32fi
33if [ "`echo $c | grep -v kernel | grep mindi`" != "" ]; then
34    cd ${BASE}/svn
35    echo "Management of mindi ${MINDI_VER}-$REVISION"
36    rm -fr mindi-${MINDI_VER}
37    cp -a ${VER}/mindi mindi-${MINDI_VER}
38    cp -a /tmp/mondorescue-svn.log mindi-${MINDI_VER}/svn.log
39    find mindi-${MINDI_VER} -type d -name .svn | xargs rm -rf
40    find mindi-${MINDI_VER} -type f -name '.*.swp' | xargs rm -rf
41    find mindi-${MINDI_VER} -type f -name '*~' | xargs rm -rf
42    rm -f mindi-${MINDI_VER}/parted2fdisk mindi-${MINDI_VER}/parted2fdisk.c mindi-${MINDI_VER}/rootfs/sbin/parted2fdisk-ia64
43
44    echo "Creating mindi tar files"
45    tar cfhz ${TOPDIR}/SOURCES/mindi-${MINDI_VER}.tgz mindi-${MINDI_VER}
46    tar cfhj ${TOPDIR}/SOURCES/mindi-${MINDI_VER}.tar.bz2 mindi-${MINDI_VER}
47    rm -f ${TMP}/mindi-*-root
48fi
49if [ "`echo $c | grep  mondo`" != "" ]; then
50    cd ${BASE}/svn
51    echo "Management of mondo ${MONDO_VER}-$REVISION"
52    rm -rf mondo-${MONDO_VER}
53    cp -a ${VER}/mondo mondo-${MONDO_VER}
54    cp -a /tmp/mondorescue-svn.log mondo-${MONDO_VER}/svn.log
55    cd mondo-${MONDO_VER}
56    echo "Bootstraping mondo ... "
57    ./bootstrap
58    find . -type d -name .svn | xargs rm -rf
59    find . -type f -name '.*.swp' | xargs rm -rf
60    find . -type f -name '*~' | xargs rm -rf
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.