Created
September 18, 2016 13:21
-
-
Save timsutton/21ea526304add32004b834da2fd23274 to your computer and use it in GitHub Desktop.
Utility for doing an AUSST sync run with actual diff output
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Dumb script to output an actual diff of a run of Adobe's AUSST software update mirror tool, | |
# which provides no helpful summary of what changed in its last sync operation. It also runs | |
# the command with `time`. | |
# | |
# Requires the 'tree' command, available from your favourite package manager: | |
# | |
# Homebrew: https://github.com/Homebrew/homebrew-core/blob/master/Formula/tree.rb | |
# pkgsrc: https://github.com/joyent/pkgsrc/tree/trunk/sysutils/tree | |
# Rudix: http://rudix.org/packages/tree.html | |
# MacPorts: https://trac.macports.org/browser/trunk/dports/sysutils/tree/Portfile | |
declare -r ausst_root="/path/to/ausst/root" | |
declare -r ausst_bin=/path/to/your/AdobeUpdateServerSetupTool | |
tree_before=$(mktemp) | |
tree_after=$(mktemp) | |
tree "${ausst_root}" > "${tree_before}" | |
time "${ausst_bin}" --root="${ausst_root}" --incremental | |
tree "${ausst_root}" > "${tree_after}" | |
echo "Outputting diff from directories before: ${tree_before} to after: ${tree_after}" | |
diff "${tree_before}" "${tree_after}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment