summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephane Peter <megastep@megastep.org>2006-06-27 18:49:03 +0000
committerStephane Peter <megastep@megastep.org>2006-06-27 18:49:03 +0000
commitcf33dcb49f6e8682cba7ce84e5787cfda8629e35 (patch)
tree831177c15c8e1d6fc87118f6d27a3cc53dc16d52
parent52c0ebe4b1a2e34375111f75245aece20e9f6a5c (diff)
downloadmakeself-cf33dcb49f6e8682cba7ce84e5787cfda8629e35.tar.gz
Added --encrypt option for symetric encryption support through gpg (patch by Eric Windisch)
-rwxr-xr-xmakeself.sh13
1 files 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 <megastep@megastep.org>
#
-# $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 <megastep@megastep.org>
+# (C) 1998-2006 by Stéphane Peter <megastep@megastep.org>
#
# 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"