Changeset 551 in MondoRescue for branches/stable/tools/svn2build
- Timestamp:
- May 16, 2006, 1:37:07 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/tools/svn2build
r550 r551 44 44 45 45 for d in `cat ${TOOLHOME}/DISTROS`; do 46 ddir=`echo $d | cut - f'_' -d1`47 dver=`echo $d | cut - f'_' -d2`46 ddir=`echo $d | cut -d_ -f1` 47 dver=`echo $d | cut -d_ -f2` 48 48 echo "Generating build files for $ddir ($dver)" 49 49 if [ $ddir = "debian" ]; then … … 62 62 suf=".${dfam}${dver}" 63 63 BUILDDIR=${TOPDIR}/slack 64 elif [ $ddir = "sles" ||$ddir = "suse" ]; then64 elif [ $ddir = "sles" -o $ddir = "suse" ]; then 65 65 dfam="suse" 66 66 dtype="rpm" 67 67 suf=".${ddir}${dver}" 68 68 BUILDDIR=${TOPDIR}/SPECS 69 elif [ $ddir = "fedora" || $ddir = "redhat" ||$ddir = "rhel" ]; then69 elif [ $ddir = "fedora" -o $ddir = "redhat" -o $ddir = "rhel" ]; then 70 70 dfam="redhat" 71 71 dtype="rpm" … … 79 79 fi 80 80 BUILDDIR=${TOPDIR}/SPECS 81 elif [ $ddir = "mandrake" ||$ddir = "mandriva" ]; then81 elif [ $ddir = "mandrake" -o $ddir = "mandriva" ]; then 82 82 dfam="mandriva" 83 83 dtype="rpm" … … 94 94 mkdir -p ${BUILDDIR} 95 95 96 ddd=`LANG=C ; date '+%Y-%m-%d'` 97 cat > /tmp/mondorescue.mc << EOF 98 define(\`RRR', ${TAG}${suf})dnl 99 define(\`VVV', ${v})dnl 100 define(\`DDD', ${ddd})dnl 101 EOF 102 103 mkdir -p $p-$v/distributions/$ddir 96 104 if [ $dtype = "rpm" ]; then 97 105 if [ -f $p-$v/distributions/$ddir/spec.m4 ]; then … … 103 111 exit -1 104 112 fi 105 cp $inc /tmp/mondorescue.mc106 ddd=`LANG=C ; date '+%Y-%m-%d'`107 cat >> /tmp/mondorescue.mc << EOF108 define(\`RRR', ${TAG}${suf})dnl109 define(\`VVV', ${v})dnl110 define(\`DDD', ${ddd})dnl111 EOF112 113 echo "Using $inc customization to build SPEC file" 113 m4 /tmp/mondorescue.mc $ p-$v/distributions/rpm/$p.spec > $p-$v/distributions/$ddir/$p.spec114 m4 /tmp/mondorescue.mc $inc $p-$v/distributions/rpm/$p.spec > $p-$v/distributions/$ddir/$p.spec 114 115 115 116 if [ -f $p-$v/distributions/$ddir/changelog ]; then … … 134 135 135 136 elif [ $dtype = "ebuild" ]; then 136 echo "Gentoo Bui d"137 echo "Gentoo Build" 137 138 else 138 echo "Unknown Bui d"139 echo "Unknown Build" 139 140 fi 140 141 done … … 178 179 # Finally creates the tar files 179 180 echo "Creating $p tar files" 180 tar cfhz ${TOPDIR}/SOURCES/$p-$v-$TAG.tgz $p-$v 181 tar cfhj ${TOPDIR}/SOURCES/$p-$v-$TAG.tar.bz2 $p-$v 181 tar cfhz ${TOPDIR}/SOURCES/$p-$v-$TAG.tar.gz $p-$v 182 gzip -cd ${TOPDIR}/SOURCES/$p-$v-$TAG.tar.gz | bzip2 -c3 > ${TOPDIR}/SOURCES/$p-$v-$TAG.tar.bz2 183 #tar cfhj ${TOPDIR}/SOURCES/$p-$v-$TAG.tar.bz2 $p-$v 182 184 done 183 185
Note:
See TracChangeset
for help on using the changeset viewer.