Overview
Comment: | Added -k option to keep temporary directory. Allows retrieval of .orig.tar.gz, .dsc and .diff.gz to create Sources.gz. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
eb474430e663a321659b36a5faa6b905 |
User & Date: | geraint@users.sourceforge.net on 2002-09-28 13:46:03 |
Other Links: | branch diff | manifest | tags |
Context
2002-09-29
| ||
01:05:13 |
Script to create CDROM-ready directory from .deb package. Resultant directory should be copied to / directory of iso9660 image. Recipient of CDROM then uses "apt-cdrom add"; "apt-get install mtt". check-in: 9675b715f8 user: geraint@users.sourceforge.net tags: origin/master, trunk | |
2002-09-28
| ||
13:46:03 | Added -k option to keep temporary directory. Allows retrieval of .orig.tar.gz, .dsc and .diff.gz to create Sources.gz. check-in: eb474430e6 user: geraint@users.sourceforge.net tags: origin/master, trunk | |
2002-09-26
| ||
08:33:54 |
Removed comma from pattern so that braces are places around each argument of a function call. Added greek letter nu as a special variable. check-in: 54c7820b4a user: geraint@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/bin/mtt_cvs2deb from [5b212d2212] to [ad3542fc70].
︙ | ︙ | |||
8 9 10 11 12 13 14 15 16 17 18 19 20 21 | usage: $0 [options] options: -d /path/to/mttroot Build package from local directory /path/to/mttroot instead of sourceforge CVS. -l changelog text Write changelog text to changelog file Note: this must be the last option given. -v #.# Use version #.# instead of the date to label the .deb | > > > | 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | usage: $0 [options] options: -d /path/to/mttroot Build package from local directory /path/to/mttroot instead of sourceforge CVS. -k Keep temporary directory after package creation -l changelog text Write changelog text to changelog file Note: this must be the last option given. -v #.# Use version #.# instead of the date to label the .deb |
︙ | ︙ | |||
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | default_sources="sourceforge" default_logtext="snapshot from ${default_sources}." default_version=`date --iso-8601 | sed 's/\-/./g'` sources=${default_sources} logtext=${default_logtext} version=${default_version} # look for command line arguments while [ -n "`echo $1 | grep '^-'`" ]; do case $1 in -d) # package directory instead of cvs sources # should be the path to the mttroot directory sources=$2 if [ ! "`basename ${sources}`" = "mttroot" ]; then error "directory ${sources} is not location of mttroot" fi if [ "${logtext}" = "${default_logtext}" ]; then logtext="snapshot from local sources (${sources})" fi echo "Using source directory: ${sources}" shift ;; -h) usage exit 0 ;; -l) # specify changelog text shift logtext="$*" echo "Using changelog text: ${logtext}" shift ;; -v) # specify version version=$2 | > > > | 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | default_sources="sourceforge" default_logtext="snapshot from ${default_sources}." default_version=`date --iso-8601 | sed 's/\-/./g'` sources=${default_sources} logtext=${default_logtext} version=${default_version} keeptmp="remove" # look for command line arguments while [ -n "`echo $1 | grep '^-'`" ]; do case $1 in -d) # package directory instead of cvs sources # should be the path to the mttroot directory sources=$2 if [ ! "`basename ${sources}`" = "mttroot" ]; then error "directory ${sources} is not location of mttroot" fi if [ "${logtext}" = "${default_logtext}" ]; then logtext="snapshot from local sources (${sources})" fi echo "Using source directory: ${sources}" shift ;; -h) usage exit 0 ;; -k) # keep temporary directory keeptmp="keep" ;; -l) # specify changelog text shift logtext="$*" echo "Using changelog text: ${logtext}" shift ;; -v) # specify version version=$2 |
︙ | ︙ | |||
106 107 108 109 110 111 112 | cd .. dpkg-buildpackage -rfakeroot cd .. # clean up cp mtt*.deb ${topdir}/ cd ${topdir} | > | > > > | 112 113 114 115 116 117 118 119 120 121 122 123 124 125 | cd .. dpkg-buildpackage -rfakeroot cd .. # clean up cp mtt*.deb ${topdir}/ cd ${topdir} if [ "${keeptmp}" = "remove" ]; then rm -r ${tmpdir} else echo Keeping temporary directory: ${tmpdir} fi exit 0 |