From cf33dcb49f6e8682cba7ce84e5787cfda8629e35 Mon Sep 17 00:00:00 2001 From: Stephane Peter Date: Tue, 27 Jun 2006 18:49:03 +0000 Subject: Added --encrypt option for symetric encryption support through gpg (patch by Eric Windisch) --- makeself.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/makeself.sh b/makeself.sh index 878bb49..d3daf45 100755 --- a/makeself.sh +++ b/makeself.sh @@ -3,7 +3,7 @@ # Makeself version 2.1.x # by Stephane Peter # -# $Id: makeself.sh,v 1.59 2006-04-20 19:20:54 megastep Exp $ +# $Id: makeself.sh,v 1.60 2006-06-27 18:49:03 megastep Exp $ # # Utility to create self-extracting tar.gz archives. # The resulting archive is a file holding the tar.gz archive with @@ -59,8 +59,9 @@ # Better handling of dot files in the archive directory. # - 2.1.5 : Made the md5sum detection consistent with the header code. # Check for the presence of the archive directory +# Added --encrypt for symmetric encryption through gpg (Eric Windisch) # -# (C) 1998-2005 by Stéphane Peter +# (C) 1998-2006 by Stéphane Peter # # This software is released under the terms of the GNU GPL version 2 and above # Please read the license at http://www.gnu.org/copyleft/gpl.html @@ -145,6 +146,10 @@ do COMPRESS=Unix shift ;; + --encrypt) + COMPRESS=gpg + shift + ;; --nocomp) COMPRESS=none shift @@ -269,6 +274,10 @@ bzip2) GZIP_CMD="bzip2 -9" GUNZIP_CMD="bzip2 -d" ;; +gpg) + GZIP_CMD="gpg -ac -z9" + GUNZIP_CMD="gpg -d" + ;; Unix) GZIP_CMD="compress -cf" GUNZIP_CMD="exec 2>&-; uncompress -c || test \\\$? -eq 2 || gzip -cd" -- cgit v1.2.1