4 # Copyright 2016 RIFT.IO Inc
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
10 # http://www.apache.org/licenses/LICENSE-2.0
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.
18 # 13-July-2016 -- Jeremy.Mordkoff -- delete all pyo and pyc files
25 # Create destination and build cache directories
29 # Create necessary directories under dest and cache dirs
30 mkdir
-p $dest_dir/framework
31 mkdir
-p $bcache_dir/framework
33 find $source_dir -type f
-name '*.py[oc]' -ls -delete
35 # Copy over skyquake-core components
36 cp -Lrf $source_dir/package.json
$dest_dir/.
37 cp -Lrf $source_dir/node_modules
$dest_dir/.
38 cp -Lrf $source_dir/skyquake.js
$dest_dir/.
39 cp -Lrf $source_dir/framework
/core
$dest_dir/framework
/.
40 cp -Lrf $source_dir/scripts
$dest_dir/.
42 cp -Lrf $source_dir/package.json
$bcache_dir/.
43 cp -Lrf $source_dir/node_modules
$bcache_dir/.
44 cp -Lrf $source_dir/skyquake.js
$bcache_dir/.
45 cp -Lrf $source_dir/framework
/core
$bcache_dir/framework
/.
46 cp -Lrf $source_dir/scripts
$bcache_dir/.