Skip to content

Commit 138533f

Browse files
committed
add sync script
1 parent 026f917 commit 138533f

File tree

16 files changed

+16
-0
lines changed

16 files changed

+16
-0
lines changed

.github/.sync

Whitespace-only changes.

.scripts/.sync

Whitespace-only changes.

.scripts/sync.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
3+
dst=$1
4+
if [[ ! -d "${dst}" ]]; then
5+
echo "Usage: ./.scripts/sync.sh <destination dir>."
6+
echo "The destination dir should exist"
7+
exit 1
8+
fi
9+
10+
GLOBIGNORE=".:..:.git"
11+
for f in *; do
12+
[[ -d "${dst}/${f}" ]] && [[ ! -f "${dst}/${f}/.sync" ]] && continue
13+
14+
echo "syncing ${f}..."
15+
cp -R "${f}" "${dst}"
16+
done

hw01_hello_otus/.sync

Whitespace-only changes.

hw02_unpack_string/.sync

Whitespace-only changes.

hw03_frequency_analysis/.sync

Whitespace-only changes.

hw04_lru_cache/.sync

Whitespace-only changes.

hw05_parallel_execution/.sync

Whitespace-only changes.

hw06_pipeline_execution/.sync

Whitespace-only changes.

hw07_file_copying/.sync

Whitespace-only changes.

hw08_envdir_tool/.sync

Whitespace-only changes.

hw09_struct_validator/.sync

Whitespace-only changes.

hw10_program_optimization/.sync

Whitespace-only changes.

hw11_telnet_client/.sync

Whitespace-only changes.

hw12_13_14_15_calendar/.sync

Whitespace-only changes.

img/.sync

Whitespace-only changes.

0 commit comments

Comments
 (0)