aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README27
-rwxr-xr-xdeb2tarball (renamed from deb2tgz)10
2 files changed, 33 insertions, 4 deletions
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/deb2tgz b/deb2tarball
index bb7b3d0..145f58d 100755
--- a/deb2tgz
+++ b/deb2tarball
@@ -3,13 +3,11 @@
INPUT="$1"
if [ -z "$INPUT" -o "$INPUT" = "--help" ]; then
- echo "deb2tgz by B. Watson <yalhcru@gmail.com>, WTFPL"
+ echo "deb2tarball 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.*".
@@ -21,4 +19,8 @@ if [ -z "$DATA" ]; then
exit 1
fi
-ar p "$INPUT" "$DATA" > $OUTPUT
+EXT="$( echo $DATA | cut -d. -f2- )"
+OUTPUT="`basename $1 .deb`".$EXT
+
+echo "$OUTPUT"
+ar p "$INPUT" "$DATA" > "$OUTPUT"