From e1011ac39bcda2ecf00173269d443037d5f74d93 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sun, 5 Jul 2020 21:51:38 -0400 Subject: Rename deb2tgz => deb2tarball --- README | 27 +++++++++++++++++++++++++++ deb2tarball | 26 ++++++++++++++++++++++++++ deb2tgz | 24 ------------------------ 3 files changed, 53 insertions(+), 24 deletions(-) create mode 100755 deb2tarball delete mode 100755 deb2tgz diff --git a/README b/README index 036781b..fc85d09 100644 --- a/README +++ b/README @@ -1,22 +1,49 @@ Stuff from my ~/bin directory. +bchunkmulti - wrapper for bchunk, to support multiple .bin files +bkt - count repeats in input, show percentage/graph/etc calc_bitrate.pl - scan a DVD, calculate bitrate for ripping chordparser.pl - given a chord name, tell what notes are in it chordspeller.pl - more guitar-oriented chord parser cjackbay - curses patchbay for JACK (no X required) +crc32 - horribly inefficient way to calculate crc32 of a file dasm2atasm - convert 6502 asm syntax from dasm to atasm (incomplete) +deb2tarball - convert a .deb package to a .tar.gz or .tar.xz +dumprpath +ffmpeg-rm-video find_key - find the key of an audio file find_tuning - find the tuning of an audio file fixrtcaps - add needed capability bits to jack binaries +fixterm freqnote.pl - convert a frequency in Hz to the nearest note +gammatrip.sh +imagebin lddsafe - https://github.com/rg3/lddsafe/ (local copy here) lddtree - show library dependencies as a tree mkclick.pl - generate a click track at a given tempo +netqiv noobfarm2fortune.sh - scrape noobfarm.org, create fortune(6) file notefreq - given a note (and octave), show the frequency parallel_resistors - 1 / ( (1/r1) + (1/r2) + ... + (1/rN) ) +randoom renumfiles - number files numerically sanerename.pl - get rid of mixed case, spaces, punctuation in filenames +selfunload.pl +slack_last_update.sh +slacklog +slacktopic.pl +smartfmt +termbin +uleft +unfb2 +unibmptxt.pl +urxvt-change-font +utf8ord +vipaste +vol +wide.pl +x1 +xcleanpaste Also I've checked the output of noobfarm2fortune.sh into git, since it takes a while to run: diff --git a/deb2tarball b/deb2tarball new file mode 100755 index 0000000..145f58d --- /dev/null +++ b/deb2tarball @@ -0,0 +1,26 @@ +#!/bin/sh + +INPUT="$1" + +if [ -z "$INPUT" -o "$INPUT" = "--help" ]; then + echo "deb2tarball by B. Watson , WTFPL" + echo "Usage: `basename $0` filename.deb" + exit 0 +fi + +# 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 + +EXT="$( echo $DATA | cut -d. -f2- )" +OUTPUT="`basename $1 .deb`".$EXT + +echo "$OUTPUT" +ar p "$INPUT" "$DATA" > "$OUTPUT" 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 , 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 -- cgit v1.2.3