File: make-dist.sh

package info (click to toggle)
python-libtrace 1.6%2Bgit20161027-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,124 kB
  • ctags: 1,357
  • sloc: ansic: 6,890; python: 3,228; makefile: 70; sh: 49
file content (56 lines) | stat: -rw-r--r-- 1,718 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/bin/sh

# 1423, Sat 15 Mar 14 (PDT)
#
# Make python-libtrace distribution tarball
#
# python-libtrace: a Ruby module to make it easy to use libtrace
# Copyright (C) 2008 by Nevil Brownlee, U Auckland | WAND
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.


VER=`./plt-version.py`
echo "Making tarball for $VER  ..."

OLD=`echo ${PWD##*/}`  # Current directory name
N="python-libtrace-${VER}"  # New directory name

cd ..
if [ $OLD != $N ]
then
  mv $OLD $N
fi

tar zcf ${N}.tgz \
   $N/LICENSE $N/README $N/INSTALL $N/version.history \
   $N/Makefile $N/*.py $N/*.sh $N/exclude-list.txt \
   $N/lib/ipp/*.py $N/lib/ipp/*.c \
   $N/lib/plt/*.py $N/lib/plt/*.c \
   $N/lib/natkit/*.py $N/lib/natkit/*.c \
   $N/lib/pldns/*.py $N/lib/pldns/*.c \
   $N/lib/include/pv.h $N/lib/include/plt.h \
   $N/doc/*.html $N/doc/*.css  $N/doc/*.svg \
   $N/doc/examples/*.py $N/doc/examples/*.pcap\
   $N/test/run_test.py \
   $N/test/v2-test-cases/*.py $N/test/v2-test-cases/*.res \
   $N/test/v2-test-cases/*.pcap* \
   $N/test/v3-test-cases/*.py $N/test/v3-test-cases/*.res \
   $N/test/v3-test-cases/*.pcap* \

if [ $OLD != $N ]
then
mv $N $OLD
fi
cd $OLD