File: release_bin

package info (click to toggle)
xxdiff 1%3A2.5-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 3,936 kB
  • ctags: 3,420
  • sloc: cpp: 16,125; ansic: 16,104; sh: 1,684; makefile: 295; yacc: 238; lex: 218; python: 216
file content (43 lines) | stat: -rwxr-xr-x 765 bytes parent folder | download
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
43
#!/bin/sh
#
# $Id: release_bin,v 1.11 2002/02/07 07:42:21 blais Exp $
#

if [ ! -d "tools" ]; then
     echo "You must be running this script from the topdir directory."
     exit 1;
fi

# Package for simple binary release.
VERSION=`tools/get_version`
echo "Making binary release version $VERSION"

PLAT=`tools/config.guess`
case $PLAT in
        *sparc*)
        PEXT=sparc ;;

        *mips*)
        PEXT=mips ;;

        *linux*)
        PEXT=i386 ;;
esac
    
PDIR=xxdiff-$VERSION.$PEXT
ROOT=..

mkdir $ROOT/$PDIR
cp src/xxdiff $ROOT/$PDIR

strip $ROOT/$PDIR/xxdiff

cp src/xxdiff.1 $ROOT/$PDIR
cp README $ROOT/$PDIR
cp CHANGES $ROOT/$PDIR

$ROOT/$PDIR/xxdiff --help-html > $ROOT/$PDIR/xxdiff-doc.html

cd ..
tar cvf - $PDIR | gzip > $PDIR.tar.gz
rm -rf $PDIR