8bc3a5456d381f19c3976fcaccf6b25858ffb807
3 # Copyright 2016 RIFT.IO Inc
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
17 # Author(s): Austin Cormier
18 # Creation Date: 2016/05/23
21 # This shell script is used to create a descriptor package
22 # The main functions of this script include:
23 # - Generate checksums.txt file
24 # - Generate a tar.gz file
26 # Usage: generate_descriptor_pkg.sh <package-directory> <dest_package_dir>
31 dest_dir
=$
(cd $1 && pwd)
32 pkg_dir
=$
(cd $2 && pwd)
39 md5sum $file >> checksums.txt
42 tar -zcvf ${dest_dir}/$
(basename $pkg_dir).
tar.gz $
(basename $pkg_dir)