forked from jameshilliard/cyclades-serial-code
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake-dist
More file actions
executable file
·36 lines (26 loc) · 722 Bytes
/
make-dist
File metadata and controls
executable file
·36 lines (26 loc) · 722 Bytes
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
#!/bin/sh -x
#
# Quick-n-dirty hack to make a release tarball
#
make distclean
find . -name '*~' -exec rm \{\} \;
VERSION=`cat configure.in | grep ^version | cut -d = -f 2`
# Get rid of quotes
VERSION=`eval echo ${VERSION}`
PWD=`pwd`
SRCDIR=`basename ${PWD}`
cd ..
TOPDIR=`pwd`
rm -f ${TOPDIR}/cyclades-serial-client-${VERSION}.tgz
# Clean /tmp
rm -rf /tmp/cyclades-serial-client-${VERSION}
# Copy files to /tmp
cp -a ${SRCDIR} /tmp/cyclades-serial-client-${VERSION}
cd /tmp
DISTFILES=`find cyclades-serial-client-${VERSION} \
-not -path '*CVS*' -and \
-not -name .cvsignore -and \
-not -path .\ -and \
-not -path '*/misc/*' \
-type f`
tar zcvf ${TOPDIR}/cyclades-serial-client-${VERSION}.tgz ${DISTFILES}