diff options
author | B. Watson <yalhcru@gmail.com> | 2020-07-05 21:51:38 -0400 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2020-07-05 21:51:38 -0400 |
commit | e1011ac39bcda2ecf00173269d443037d5f74d93 (patch) | |
tree | 769712d59a157d0d3fb9d4d762b04ff153fd6a13 /deb2tgz | |
parent | f4bb1ffe4cb5b5cfacca4fddbc4929e6a11ef9f2 (diff) | |
download | misc-scripts-e1011ac39bcda2ecf00173269d443037d5f74d93.tar.gz |
Rename deb2tgz => deb2tarball
Diffstat (limited to 'deb2tgz')
-rwxr-xr-x | deb2tgz | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/deb2tgz b/deb2tgz deleted file mode 100755 index bb7b3d0..0000000 --- a/deb2tgz +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh - -INPUT="$1" - -if [ -z "$INPUT" -o "$INPUT" = "--help" ]; then - echo "deb2tgz by B. Watson <yalhcru@gmail.com>, WTFPL" - echo "Usage: `basename $0` filename.deb" - exit 0 -fi - -OUTPUT="`basename $1 .deb`.tgz" - -# used to always be data.tar.gz, newer debs might have data.tar.xz, -# so we have to check. ar doesn't support wildcards like tar does, so -# we can't just say "data.tar.*". - -DATA="$( ar t "$INPUT" 2>/dev/null | grep '^data\.tar\.' )" - -if [ -z "$DATA" ]; then - echo "Can't find any data.tar.* file(s) in the archive, invalid deb?" 2>&1 - exit 1 -fi - -ar p "$INPUT" "$DATA" > $OUTPUT |