Overview
Comment:Script to automate the production of a .deb package from the cvs sources.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: d73d56666e05d0a2fd0c29033938845d4e5aadf04047fa0cc14abc3542680ccf
User & Date: geraint@users.sourceforge.net on 2002-09-21 00:30:48
Other Links: branch diff | manifest | tags
Context
2002-09-21
14:02:55
Added option to generate .deb package from local directory source. check-in: 993b274293 user: geraint@users.sourceforge.net tags: origin/master, trunk
00:30:48
Script to automate the production of a .deb package from the cvs sources. check-in: d73d56666e user: geraint@users.sourceforge.net tags: origin/master, trunk
2002-09-20
23:42:48
Documentation directory for .deb defined after bin/mttrc. check-in: 107e6f80f7 user: geraint@users.sourceforge.net tags: origin/master, trunk
Changes

Added mttroot/mtt/bin/mtt_cvs2deb version [2b957fe7a8].





















































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#! /bin/sh

# Script to create a .deb package from the current cvs sources.

# should be root for some of these commands
if [ ! `whoami` = "root" ]; then
    echo root password required
    exec su -p -c "$0 $*"
    exit 1	# if here, su failed
fi

if [ $# -gt 0 ]; then
    version=$1
    text="New release."
else 
    current_version=`mtt --version | gawk '{print $3}'`
    date=`date --iso-8601 | sed 's/\-/./g'`
    version="$current_version.$date"
    text="Snapshot of sources from CVS."
fi

topdir=`pwd`
tmpdir=`mktemp -d mtt_cvs2deb.tmp.XXXXXXXXXX`
if [ ! -d $tmpdir ]; then
    echo "error: cannot create temporary directory - aborting!"
    exit 1
fi
cd $tmpdir
cvs -z3 -d:pserver:anonymous@cvs.mtt.sf.net:/cvsroot/mtt co mttroot
cd mttroot
tar -czf mtt-${version}.tar.gz mtt/
cd mtt
echo "A \"cannot create diff\" error in the next few lines is probably harmless"
uupdate -u mtt-${version}.tar.gz
cd ../mtt-${version}/debian
dch -v ${version} ${text}
cd ..
dpkg-buildpackage -rfakeroot
cd ..
cp mtt*.deb $topdir/
cd $topdir
rm -r $tmpdir


MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]