| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 # | 2 # |
| 3 # Removes ./wpt/ directory containing the reduced web-platform-tests tree and | 3 # Removes ./wpt/ directory containing the reduced web-platform-tests tree and |
| 4 # starts a new checkout. Only files in WPTWhiteList are retained. The revisions | 4 # starts a new checkout. Only files in WPTWhiteList are retained. The revisions |
| 5 # getting checked out are defined in WPTHeads. | 5 # getting checked out are defined in WPTHeads. |
| 6 | 6 |
| 7 DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) | 7 DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) |
| 8 cd $DIR | 8 cd $DIR |
| 9 | 9 |
| 10 TARGET_DIR=$DIR/wpt | 10 TARGET_DIR=$DIR/wpt |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 } | 43 } |
| 44 | 44 |
| 45 actions="clone reduce" | 45 actions="clone reduce" |
| 46 [ "$1" != "" ] && actions="$@" | 46 [ "$1" != "" ] && actions="$@" |
| 47 | 47 |
| 48 for action in $actions; do | 48 for action in $actions; do |
| 49 type -t $action >/dev/null || (echo "Unknown action: $action" 1>&2 && exit 1) | 49 type -t $action >/dev/null || (echo "Unknown action: $action" 1>&2 && exit 1) |
| 50 $action | 50 $action |
| 51 done | 51 done |
| 52 | 52 |
| 53 chmod 755 $TARGET_DIR/tools/manifest/update.py |
| 54 |
| 53 # TODO(burnik): Handle the SSL certs and other configuration. | 55 # TODO(burnik): Handle the SSL certs and other configuration. |
| OLD | NEW |