#!/bin/sh # [note: this script is meant to work with its companion 'unwrap'] # # Take an unversioned subdirectory named "confidential", encrypt it # (via passphrase) to the versioned file "confidential.tar.gz.gpg", # and commit the encrypted file. # # In other words: ad hoc encrypted working copies. mv -f confidential.tar.gz.gpg was_confidential.tar.gz.gpg tar zcvf confidential.tar.gz confidential gpg -o confidential.tar.gz.gpg --symmetric confidential.tar.gz rm -rf confidential.tar.gz confidential orig-confidential ### TODO: Detect whether 'confidential.tar.gz.gpg' is already under ### version control; if it's not, add it, then commit. svn ci -m "The usual." confidential.tar.gz.gpg