-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsample-params.sh
30 lines (24 loc) · 1023 Bytes
/
sample-params.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/env bash
# original code base to process (read-only):
source_url_or_path="https://github.com/Kotlin/kotlin-koans.git"
# branch to fetch from remote and append to the local
source_branch="master"
# absolute path to the local repository:
target_path="kotlin-koans"
# Will be created if absent or will be updated if present.
# Note that also these companion paths will be used: $target_path.tmp & $target_path.bak
# top level files and dirs to keep (use names only, not paths!):
top_level_paths_to_keep=(
"src"
"test"
"build.gradle"
)
# relative paths to remove after removing everything except $top_level_paths_to_keep:
relative_paths_to_delete=(
"src/util"
"test/util"
)
# tag patterns to delete (use shell patterns possibly including wildcards: *)
tags_to_delete=(
"some-tag-allowing-wildcards-*"
)