| Jeremy Mordkoff | e29efc3 | 2016-09-07 18:59:17 -0400 | [diff] [blame] | 1 | #!/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 | |
| 21 | source_dir=$1 |
| 22 | dest_dir=$2 |
| 23 | bcache_dir=$3 |
| 24 | |
| 25 | # Create destination and build cache directories |
| 26 | mkdir -p $dest_dir |
| 27 | mkdir -p $bcache_dir |
| 28 | |
| 29 | # Create necessary directories under dest and cache dirs |
| 30 | mkdir -p $dest_dir/framework |
| 31 | mkdir -p $bcache_dir/framework |
| 32 | |
| 33 | find $source_dir -type f -name '*.py[oc]' -ls -delete |
| 34 | |
| 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/. |
| 41 | |
| 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/. |