Repository navigation
Expand file tree
/
Copy pathcreate-parcel.sh
More file actions
executable file
·66 lines (50 loc) · 1.73 KB
/
Copy pathcreate-parcel.sh
File metadata and controls
executable file
·66 lines (50 loc) · 1.73 KB
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
57
58
59
60
61
62
63
64
65
#!/bin/bash
#
# Copyright (c) 2016 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
CHECK_ENV=(VERSION DAALVERSION BUILD_NUMBER DAAL_URL DISTRO GIT_TOKEN GIT_HASH)
for env in ${CHECK_ENV[*]}
do
env | grep "$env=.*"
if [ $? -gt 0 ]; then
echo $env env variable isn\'t set
exit 1
fi
done
export REPO=daal-parcel
export ORG=trustedanalytics
export PACKAGE_NAME=DAAL_LIB
RELEASE=$BUILD_NUMBER
echo daal-$DAALVERSION.zip
if [ ! -f "daal-$DAALVERSION.zip" ]; then
wget $DAAL_URL -O daal-$DAALVERSION.zip
fi
rm -rf daal-$DAALVERSION
rm -rf parcel/lib/
unzip -o daal-$DAALVERSION.zip
mkdir -p parcel/lib
cp -rv daal-$DAALVERSION/* parcel/lib/
python alternatives.py
python parcel.py
python daal-env.py
mkdir -p $PACKAGE_NAME-$VERSION-$RELEASE
cp -Rv parcel/* $PACKAGE_NAME-$VERSION-$RELEASE/
tar -zcvf $PACKAGE_NAME-$VERSION-$RELEASE-$DISTRO.parcel $PACKAGE_NAME-$VERSION-$RELEASE/ --owner=root --group=root
java -jar cm_ext/validator/target/validator.jar -f $PACKAGE_NAME-$VERSION-$RELEASE-$DISTRO.parcel
mkdir -p repo
mv $PACKAGE_NAME-$VERSION-$RELEASE-$DISTRO.parcel repo/
pushd repo
../cm_ext/make_manifest/make_manifest.py
popd