blob: 22fd27b0d0a5394d5fa9182bea07688f5ab46c60 [file] [log] [blame]
Jeremy Mordkoffe29efc32016-09-07 18:59:17 -04001#!/bin/bash
2
3#
4# Copyright 2016 RIFT.IO Inc
5#
6# Licensed under the Apache License, Version 2.0 (the "License");
7# you may not use this file except in compliance with the License.
8# You may obtain a copy of the License at
9#
10# http://www.apache.org/licenses/LICENSE-2.0
11#
12# Unless required by applicable law or agreed to in writing, software
13# distributed under the License is distributed on an "AS IS" BASIS,
14# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15# See the License for the specific language governing permissions and
16# limitations under the License.
17#
18# 13-July-2016 -- Jeremy.Mordkoff -- delete all pyo and pyc files
19
20
21source_dir=$1
22dest_dir=$2
23bcache_dir=$3
24
25# Create destination and build cache directories
26mkdir -p $dest_dir
27mkdir -p $bcache_dir
28
29# Create necessary directories under dest and cache dirs
30mkdir -p $dest_dir/framework
31mkdir -p $bcache_dir/framework
32
33find $source_dir -type f -name '*.py[oc]' -ls -delete
34
35# Copy over skyquake-core components
36cp -Lrf $source_dir/package.json $dest_dir/.
37cp -Lrf $source_dir/node_modules $dest_dir/.
38cp -Lrf $source_dir/skyquake.js $dest_dir/.
39cp -Lrf $source_dir/framework/core $dest_dir/framework/.
40cp -Lrf $source_dir/scripts $dest_dir/.
41
42cp -Lrf $source_dir/package.json $bcache_dir/.
43cp -Lrf $source_dir/node_modules $bcache_dir/.
44cp -Lrf $source_dir/skyquake.js $bcache_dir/.
45cp -Lrf $source_dir/framework/core $bcache_dir/framework/.
46cp -Lrf $source_dir/scripts $bcache_dir/.