#!/bin/sh # [note: this script is meant to work with its companion 'wrap'] # # Decrypt "confidential.tar.gz.gpg" and expand it to create the # subdirectory "confidential", also copying that subdirectory to # "orig-confidential" so the user has something to diff against. # (Since only the .tar.gz.gpg file is under version control, not # the subdirectory created from it, using 'svn diff' won't work). # # This is the decryption side of ad hoc encrypted working copies. rm -rf orig-confidential gpg --decrypt confidential.tar.gz.gpg > confidential.tar.gz tar zxvf confidential.tar.gz cp -a confidential orig-confidential