Changeset 589 in MondoRescue
- Timestamp:
- May 29, 2006, 12:24:29 PM (18 years ago)
- Location:
- branches/stable/tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/tools/build2qemu
r572 r589 53 53 54 54 $TOOLHOME/build2pkg $LAST 55 #$TOOLHOME/mkdeliv 55 $TOOLHOME/pkg2ftp 56 56 EOF 57 57 chmod 755 $TMP/mkmondo 58 58 59 $TOOLHOME/files2ftp 59 60 cd $TOOLHOME/.. 60 61 tar cfz $TMP/mkmondo.tar.gz $TOOLHOME $TMP/mkmondo $TOPDIR/${VER}-$TAG -
branches/stable/tools/mkdeliv
r549 r589 1 1 #!/bin/bash 2 2 # 3 # Deliver RPMspackages and tgz files to ftp.mondorescue.org3 # Deliver packages and tgz files to ftp.mondorescue.org 4 4 # 5 5 # $Id$ … … 21 21 22 22 . $TOOLHOME/common-env 23 . $TOOLHOME/svn-env 24 . $TOOLHOME/rpm-env 23 . $TOOLHOME/distro-env 24 25 # We need to get $VER and $TAG 26 if [ "$1" = "" ]; then 27 LAST=`cat ${TOPDIR}/LAST` 28 else 29 LAST=$1 30 shift 31 fi 32 VER=`echo $LAST | cut -d- -f1` 33 TAG=`echo $LAST | cut -d- -f2` 34 echo "Working on ${VER}-$TAG" 35 36 if [ "$1" = "" ]; then 37 c="mondo-doc mindi mondo" 38 else 39 if [ "$1" = "all" ]; then 40 c="mindi-kernel mondo-doc mindi mondo" 41 else 42 c=$1 43 fi 44 fi 45 46 export pkg="" 47 echo "Working under $TOPBUILDDIR" 48 cd $TOPBUILDDIR 49 50 for p in $c; do 25 51 26 52 tgz="" 27 53 srpms="" 28 54 rpms="" 29 rev=`$TOOLHOME/mksvnversion`30 55 31 if [ "$1" = "" ]; then32 c="mondo-doc mindi mondo"33 else34 c=$135 fi36 56 if [ "`echo $c | grep mindi`" != "" ]; then 37 cp -a ${TOP DIR}/SOURCES/mindi-${MINDI_VER}.tgz ${TOPDIR}/SOURCES/mindi-${MINDI_VER}-r${rev}.tgz38 cp -a ${TOP DIR}/SOURCES/mindi-${MINDI_VER}.tar.bz2 ${TOPDIR}/SOURCES/mindi-${MINDI_VER}-r${rev}.tar.bz239 tgz="$tgz ${TOP DIR}/SOURCES/mindi-${MINDI_VER}-r${rev}.tgz ${TOPDIR}/SOURCES/mindi-${MINDI_VER}-r${rev}.tar.bz2"40 rpms="$rpms ${TOP DIR}/RPMS/${ARCH}/mindi-${MINDI_VER}-${rev}${suf}.${ARCH}.rpm"41 srpms="$srpms ${TOP DIR}/SRPMS/mindi-${MINDI_VER}-${rev}${suf}.src.rpm"57 cp -a ${TOPBUILDDIR}/SOURCES/mindi-${MINDI_VER}.tgz ${TOPBUILDDIR}/SOURCES/mindi-${MINDI_VER}-r${rev}.tgz 58 cp -a ${TOPBUILDDIR}/SOURCES/mindi-${MINDI_VER}.tar.bz2 ${TOPBUILDDIR}/SOURCES/mindi-${MINDI_VER}-r${rev}.tar.bz2 59 tgz="$tgz ${TOPBUILDDIR}/SOURCES/mindi-${MINDI_VER}-r${rev}.tgz ${TOPBUILDDIR}/SOURCES/mindi-${MINDI_VER}-r${rev}.tar.bz2" 60 rpms="$rpms ${TOPBUILDDIR}/RPMS/${ARCH}/mindi-${MINDI_VER}-${rev}${suf}.${ARCH}.rpm" 61 srpms="$srpms ${TOPBUILDDIR}/SRPMS/mindi-${MINDI_VER}-${rev}${suf}.src.rpm" 42 62 fi 43 63 if [ "`echo $c | grep mondo-doc`" != "" ]; then 44 cp -a ${TOP DIR}/SOURCES/mondo-doc-${MONDO_VER}.tgz ${TOPDIR}/SOURCES/mondo-doc-${MONDO_VER}-r${rev}.tgz45 cp -a ${TOP DIR}/SOURCES/mondo-doc-${MONDO_VER}.tar.bz2 ${TOPDIR}/SOURCES/mondo-doc-${MONDO_VER}-r${rev}.tar.bz246 tgz="$tgz ${TOP DIR}/SOURCES/mondo-doc-${MONDO_VER}-r${rev}.tgz ${TOPDIR}/SOURCES/mondo-doc-${MONDO_VER}-r${rev}.tar.bz2"47 rpms="$rpms ${TOP DIR}/RPMS/${ARCH}/mondo-doc-${MONDO_VER}-${rev}${suf}.${ARCH}.rpm"48 srpms="$srpms ${TOP DIR}/SRPMS/mondo-${MONDO_VER}-${rev}${suf}.src.rpm"64 cp -a ${TOPBUILDDIR}/SOURCES/mondo-doc-${MONDO_VER}.tgz ${TOPBUILDDIR}/SOURCES/mondo-doc-${MONDO_VER}-r${rev}.tgz 65 cp -a ${TOPBUILDDIR}/SOURCES/mondo-doc-${MONDO_VER}.tar.bz2 ${TOPBUILDDIR}/SOURCES/mondo-doc-${MONDO_VER}-r${rev}.tar.bz2 66 tgz="$tgz ${TOPBUILDDIR}/SOURCES/mondo-doc-${MONDO_VER}-r${rev}.tgz ${TOPBUILDDIR}/SOURCES/mondo-doc-${MONDO_VER}-r${rev}.tar.bz2" 67 rpms="$rpms ${TOPBUILDDIR}/RPMS/${ARCH}/mondo-doc-${MONDO_VER}-${rev}${suf}.${ARCH}.rpm" 68 srpms="$srpms ${TOPBUILDDIR}/SRPMS/mondo-${MONDO_VER}-${rev}${suf}.src.rpm" 49 69 fi 50 70 if [ "`echo $c | grep -v doc | grep mondo`" != "" ]; then 51 cp -a ${TOP DIR}/SOURCES/mondo-${MONDO_VER}.tgz ${TOPDIR}/SOURCES/mondo-${MONDO_VER}-r${rev}.tgz52 cp -a ${TOP DIR}/SOURCES/mondo-${MONDO_VER}.tar.bz2 ${TOPDIR}/SOURCES/mondo-${MONDO_VER}-r${rev}.tar.bz253 tgz="$tgz ${TOP DIR}/SOURCES/mondo-${MONDO_VER}-r${rev}.tgz ${TOPDIR}/SOURCES/mondo-${MONDO_VER}-r${rev}.tar.bz2"54 rpms="$rpms ${TOP DIR}/RPMS/${ARCH}/mondo-${MONDO_VER}-${rev}${suf}.${ARCH}.rpm"55 srpms="$srpms ${TOP DIR}/SRPMS/mondo-${MONDO_VER}-${rev}${suf}.src.rpm"71 cp -a ${TOPBUILDDIR}/SOURCES/mondo-${MONDO_VER}.tgz ${TOPBUILDDIR}/SOURCES/mondo-${MONDO_VER}-r${rev}.tgz 72 cp -a ${TOPBUILDDIR}/SOURCES/mondo-${MONDO_VER}.tar.bz2 ${TOPBUILDDIR}/SOURCES/mondo-${MONDO_VER}-r${rev}.tar.bz2 73 tgz="$tgz ${TOPBUILDDIR}/SOURCES/mondo-${MONDO_VER}-r${rev}.tgz ${TOPBUILDDIR}/SOURCES/mondo-${MONDO_VER}-r${rev}.tar.bz2" 74 rpms="$rpms ${TOPBUILDDIR}/RPMS/${ARCH}/mondo-${MONDO_VER}-${rev}${suf}.${ARCH}.rpm" 75 srpms="$srpms ${TOPBUILDDIR}/SRPMS/mondo-${MONDO_VER}-${rev}${suf}.src.rpm" 56 76 fi 57 77 echo "Sources delivery to ${ACCOUNT}:${DSTDIR}/src"
Note:
See TracChangeset
for help on using the changeset viewer.