OLD | NEW |
1 #!/bin/sh | 1 #!/bin/sh |
2 | 2 |
3 # This script copies the build outputs produced by `pub build` to | 3 # This script copies the build outputs produced by `pub build` to |
4 # the deployed directory. | 4 # the deployed directory. |
5 | 5 |
6 if [ ! -d "build" ]; then | 6 if [ ! -d "build" ]; then |
7 echo "Please run pub build first" | 7 echo "Please run pub build first" |
8 exit | 8 exit |
9 fi | 9 fi |
10 | 10 |
11 if [ ! -d "deployed" ]; then | 11 if [ ! -d "deployed" ]; then |
12 echo "Run this script from the client directory" | 12 echo "Run this script from the client directory" |
13 exit | 13 exit |
14 fi | 14 fi |
15 | 15 |
16 EXCLUDE="--exclude bootstrap_css" | 16 EXCLUDE="--exclude bootstrap_css" |
17 EXCLUDE="$EXCLUDE --exclude *.map" | 17 EXCLUDE="$EXCLUDE --exclude *.map" |
18 EXCLUDE="$EXCLUDE --exclude *.concat.js" | 18 EXCLUDE="$EXCLUDE --exclude *.concat.js" |
19 EXCLUDE="$EXCLUDE --exclude *.scriptUrls" | 19 EXCLUDE="$EXCLUDE --exclude *.scriptUrls" |
20 EXCLUDE="$EXCLUDE --exclude *.precompiled.js" | 20 EXCLUDE="$EXCLUDE --exclude *.precompiled.js" |
21 EXCLUDE="$EXCLUDE --exclude main.*" | 21 EXCLUDE="$EXCLUDE --exclude main.*" |
| 22 EXCLUDE="$EXCLUDE --exclude *~" |
| 23 EXCLUDE="$EXCLUDE --exclude \#*\#" |
22 | 24 |
23 rsync -av --progress build/web/ deployed/web/ $EXCLUDE | 25 rsync -av --progress build/web/ deployed/web/ $EXCLUDE |
OLD | NEW |