3 # Convert a .zip file from github into .tar.gz
5 # Copyright (c) 2015 Red Hat.
7 # This program is free software; you can redistribute it and/or modify it
8 # under the terms of the GNU General Public License as published by the
9 # Free Software Foundation; either version 2 of the License, or (at your
10 # option) any later version.
12 # This program is distributed in the hope that it will be useful, but
13 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
23 tmp
=`mktemp -d /tmp/pcp.XXXXXXXXX` ||
exit 1
24 trap "rm -rf $tmp; exit \$status" 0 1 2 3 15
26 if [ -z "$zip" -o -z "$tgz" ]
28 echo "Usage: $0 zipfile tgzfile"