Revision 8655
Added by Aaron Marcuse-Kubitza over 11 years ago
schemas/VegCore/VegCore.ERD.mwb.run | ||
---|---|---|
9 | 9 |
export_ () |
10 | 10 |
{ |
11 | 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 |
|
12 |
(cd "$top_dir" |
|
13 |
echo_run unzip -u "$archive_filename" document.mwb.xml) |
|
17 | 14 |
} |
18 | 15 |
|
19 | 16 |
import () |
20 | 17 |
{ |
21 | 18 |
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 |
|
19 |
(cd "$top_dir" |
|
20 |
echo_run zip -u "$archive_filename" document.mwb.xml) |
|
27 | 21 |
} |
28 | 22 |
|
29 | 23 |
sync () |
Also available in: Unified diff
schemas/VegCore/VegCore.ERD.mwb.run: import/export_ (): use zip/unzip's -u flag instead of `make` to auto-sync the zip file contents. the -u flag has the added benefit of preserving the contained file's mtime, at the expense of an mtime lookup in the zip archive's table of contents.