forked from py4n6/pytsk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
make_dist.sh
executable file
·51 lines (42 loc) · 1.1 KB
/
make_dist.sh
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
#!/bin/sh
# Script to package pytsk
VERSION=`grep -e "^VERSION = " class_parser.py | sed 's/^.*"\([0-9]*\)"$/\1/'`;
rm -f pytsk-*.tgz
PYTSK_SOURCE_FILES="\
../pytsk/aff4_errors.h \
../pytsk/class.c \
../pytsk/class.h \
../pytsk/error.c \
../pytsk/misc.h \
../pytsk/pytsk3.h \
../pytsk/tsk3.c \
../pytsk/tsk3.h"
TALLOC_SOURCE_FILES="\
../pytsk/talloc/LICENSE \
../pytsk/talloc/README \
../pytsk/talloc/replace.h \
../pytsk/talloc/talloc.c \
../pytsk/talloc/talloc.h"
SCRIPTS="\
../pytsk/class_parser.py \
../pytsk/generate_bindings.py \
../pytsk/lexer.py \
../pytsk/make_dist.sh \
../pytsk/run_tests.py \
../pytsk/setup.py \
../pytsk/tests/*.py"
DATA_FILES="\
../pytsk/LICENSE \
../pytsk/MANIFEST.in \
../pytsk/README \
../pytsk/dpkg \
../pytsk/msvscpp \
../pytsk/samples \
../pytsk/test_data"
FILES="\
${PYTSK_SOURCE_FILES} \
${TALLOC_SOURCE_FILES} \
${SCRIPTS} \
${DATA_FILES}"
echo "Creating: pytsk-${VERSION}.tgz"
tar zcf pytsk-${VERSION}.tgz --exclude __pycache__ ${FILES} 2>/dev/null