File: make_master.sh

package info (click to toggle)
poker-eval 134.0-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 2,544 kB
  • ctags: 1,587
  • sloc: ansic: 15,340; sh: 8,928; cs: 785; makefile: 276
file content (29 lines) | stat: -rwxr-xr-x 768 bytes parent folder | download | duplicates (2)
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
#!/bin/bash

BUILDDIR=$1
MASTERDIR=$2
MODULE=poker-eval
CONFIGURATION=Release

SRCDIR=${BUILDDIR}
DISTDIR=${MASTERDIR}
rm -fR ${DISTDIR}
mkdir -p ${DISTDIR}

rsync -avr ${SRCDIR}/include/ ${DISTDIR}/include/ --include='*.h' --include='inlines/' --include='inlines/*.h' --exclude='**'
rsync -av ${SRCDIR}/include/poker_config.h.in ${DISTDIR}/include/poker_config.h

LIBS=${CONFIGURATION}/poker-eval.lib
rsync -av ${SRCDIR}/${LIBS} ${DISTDIR}/lib/

DOCS="\
 ${SRCDIR}/NEWS\
 ${SRCDIR}/README\
 ${SRCDIR}/TODO\
 ${SRCDIR}/AUTHORS\
 ${SRCDIR}/WHATS-HERE\
 ${SRCDIR}/debian/copyright"
rsync -av $DOCS $DISTDIR/doc/
rsync -av ${SRCDIR}/ChangeLog $DISTDIR/doc/changelog

rsync -avr ${SRCDIR}/examples/ ${DISTDIR}/examples/ --include='*.vcproj' --include='*.c' --exclude='**'