~ubuntu-branches/ubuntu/hardy/xxdiff/hardy

« back to all changes in this revision

Viewing changes to adm/release_bin

  • Committer: Bazaar Package Importer
  • Author(s): Tomas Pospisek
  • Date: 2005-03-29 08:43:56 UTC
  • mfrom: (1.2.1 upstream) (2.1.2 hoary)
  • Revision ID: james.westby@ubuntu.com-20050329084356-nkwv8jf18nc7u5qf
Tags: 1:3.1-3
re-upload

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
#
 
3
# $RCSfile: release_bin,v $
 
4
#
 
5
 
 
6
if [ ! -d "adm" ]; then
 
7
     echo "You must be running this script from the topdir directory."
 
8
     exit 1;
 
9
fi
 
10
 
 
11
# Package for simple binary release.
 
12
VERSION=`adm/get_version`
 
13
echo "Making binary release version $VERSION"
 
14
 
 
15
PLAT=`adm/config.guess`
 
16
case $PLAT in
 
17
        *sparc*)
 
18
        PEXT=sparc ;;
 
19
 
 
20
        *mips*)
 
21
        PEXT=mips ;;
 
22
 
 
23
        *linux*)
 
24
        PEXT=i386 ;;
 
25
esac
 
26
    
 
27
PDIR=xxdiff-$VERSION.$PEXT
 
28
ROOT=..
 
29
 
 
30
mkdir $ROOT/$PDIR
 
31
cp src/xxdiff $ROOT/$PDIR
 
32
 
 
33
strip $ROOT/$PDIR/xxdiff
 
34
 
 
35
cp src/xxdiff.1 $ROOT/$PDIR
 
36
cp README $ROOT/$PDIR
 
37
cp CHANGES $ROOT/$PDIR
 
38
 
 
39
$ROOT/$PDIR/xxdiff --help-html > $ROOT/$PDIR/xxdiff-doc.html
 
40
 
 
41
cd ..
 
42
tar cvf - $PDIR | gzip > $PDIR.tar.gz
 
43
rm -rf $PDIR