Differences From Artifact [6e6f8feb93]:
- Executable file mttroot/mtt/bin/mtt_cvs2deb — part of check-in [d7b55e33e7] at 2003-09-23 20:53:49 on branch origin/master — Updated version number (5.0). (user: geraint@users.sourceforge.net, size: 3264) [annotate] [blame] [check-ins using] [more...]
To Artifact [296effe228]:
- Executable file
mttroot/mtt/bin/mtt_cvs2deb
— part of check-in
[e6c98916c8]
at
2004-02-19 00:47:19
on branch origin/master
— 898897 Separate examples from main .deb
Created new .deb package for examples (mtt-examples).mtt-examples depends on mtt.
mtt recommends mtt-examples. (user: geraint@users.sourceforge.net, size: 4368) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 | error "unknown option $1" ;; esac shift done topdir=`pwd` # create working directory tmpdir=`mktemp -d mtt_cvs2deb.tmp.XXXXXXXXXX` if [ ! -d ${tmpdir} ]; then error "cannot create temporary directory" fi # copy sources to working directory cd ${tmpdir} if [ "${sources}" = "${default_sources}" ]; then cvs -z3 -d:pserver:anonymous@cvs.mtt.sf.net:/cvsroot/mtt co mttroot else cp -a ${sources} . fi # generate tarball of sources cd mttroot | > > > > > | > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 | error "unknown option $1" ;; esac shift done topdir=`pwd` ## Main MTT echo "Packaging mtt ..." # create working directory tmpdir=`mktemp -d mtt_cvs2deb.tmp.XXXXXXXXXX` if [ ! -d ${tmpdir} ]; then error "cannot create temporary directory" fi # copy sources to working directory cd ${tmpdir} if [ "${sources}" = "${default_sources}" ]; then cvs -z3 -d:pserver:anonymous@cvs.mtt.sf.net:/cvsroot/mtt co mttroot else cp -a ${sources} . fi # generate tarball of sources cd mttroot tar -cf mtt-${version}.tar mtt/ tar --file mtt-${version}.tar --delete mtt/lib/examples gzip mtt-${version}.tar cd mtt # create .deb echo "$0: information: a \"Could not find diffs\" error in the next few lines is probably harmless" uupdate -u mtt-${version}.tar.gz cd ../mtt-${version}/debian dch -v ${version} ${logtext} cd .. dpkg-buildpackage -rfakeroot -k${DEBEMAIL} cd .. # clean up cp mtt*.deb ${topdir}/ cd ${topdir} if [ "${keeptmp}" = "remove" ]; then rm -r ${tmpdir} else echo Keeping temporary directory: ${tmpdir} fi ## Examples echo "Packaging mtt-examples ..." # create working directory tmpdir=`mktemp -d mtt_cvs2deb.tmp.XXXXXXXXXX` if [ ! -d ${tmpdir} ]; then error "cannot create temporary directory" fi # copy sources to working directory cd ${tmpdir} if [ "${sources}" = "${default_sources}" ]; then cvs -z3 -d:pserver:anonymous@cvs.mtt.sf.net:/cvsroot/mtt co mttroot else cp -a ${sources} . fi # generate tarball of sources cd mttroot/mtt/lib tar -cf mtt-examples-${version}.tar examples/ gzip mtt-examples-${version}.tar cd examples # create .deb echo "$0: information: a \"Could not find diffs\" error in the next few lines is probably harmless" uupdate -u mtt-examples-${version}.tar.gz cd ../mtt-examples-${version}/debian dch -v ${version} ${logtext} cd .. dpkg-buildpackage -rfakeroot -k${DEBEMAIL} cd .. # clean up cp mtt-examples*.deb ${topdir}/ cd ${topdir} if [ "${keeptmp}" = "remove" ]; then rm -r ${tmpdir} else echo Keeping temporary directory: ${tmpdir} fi exit 0 |