File: prep_dist.sh

package info (click to toggle)
plaso 20190131-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 410,832 kB
  • sloc: python: 76,636; sh: 926; makefile: 167; xml: 70; sql: 14; vhdl: 11
file content (35 lines) | stat: -rwxr-xr-x 837 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
#!/bin/bash
# Script that prepares the codebase for building a binary distribution

EXIT_FAILURE=1;
EXIT_SUCCESS=0;

if ! test -d ../l2tdevtools;
then
	echo "Unable to locate l2tdevtools.";

	exit ${EXIT_FAILURE};
fi

rm -rf config/licenses

mkdir config/licenses

DEPENDENCIES=`cat ../l2tdevtools/data/presets.ini | grep -A1 '\[plaso\]' | tail -n1 | sed 's/projects: //' | tr ',' ' '`;

for DEPENDENCY in ${DEPENDENCIES};
do
	cp "../l2tdevtools/data/licenses/LICENSE.${DEPENDENCY}" config/licenses/
done

# Remove debug, test and yet unused dependencies.
rm -f config/licenses/LICENSE.guppy
rm -f config/licenses/LICENSE.libexe
rm -f config/licenses/LICENSE.libwrc
rm -f config/licenses/LICENSE.mock
rm -f config/licenses/LICENSE.pbr

PYTHONPATH=../l2tdevtools python ../l2tdevtools/tools/update-dependencies.py

exit ${EXIT_SUCCESS};