Revision 8654
Added by Aaron Marcuse-Kubitza over 11 years ago
schemas/VegCore/VegCore.ERD.mwb.run | ||
---|---|---|
1 |
#!/bin/bash -e |
|
2 |
# syncs VegCore.ERD.mwb's zip file contents |
|
3 |
. "$(dirname "${BASH_SOURCE[0]}")"/../../lib/util.run |
|
4 |
|
|
5 |
export archive="${BASH_SOURCE[0]%.run}" |
|
6 |
|
|
7 |
export archive_filename="$(basename "$archive")" |
|
8 |
|
|
9 |
export_ () |
|
10 |
{ |
|
11 |
echo_func "$@" |
|
12 |
inline_make 3<<'EOF' |
|
13 |
document.mwb.xml: $(archive_filename) |
|
14 |
unzip -o $< $@ |
|
15 |
touch -r $< $@ # same mtimes to prevent re-syncing |
|
16 |
EOF |
|
17 |
} |
|
18 |
|
|
19 |
import () |
|
20 |
{ |
|
21 |
echo_func "$@" |
|
22 |
inline_make 3<<'EOF' |
|
23 |
$(archive_filename): document.mwb.xml |
|
24 |
zip -u $@ $< |
|
25 |
touch -r $< $@ # same mtimes to prevent re-syncing |
|
26 |
EOF |
|
27 |
} |
|
28 |
|
|
29 |
sync () |
|
30 |
{ |
|
31 |
echo_func "$@" |
|
32 |
export_ "$@" |
|
33 |
import "$@" |
|
34 |
} |
|
35 |
|
|
36 |
all () |
|
37 |
{ |
|
38 |
echo_func "$@" |
|
39 |
sync |
|
40 |
} |
|
0 | 41 |
Also available in: Unified diff
added schemas/VegCore/VegCore.ERD.mwb.run, which syncs VegCore.ERD.mwb's zip file contents