From: Mart Lubbers Date: Mon, 5 Aug 2019 09:17:28 +0000 (+0200) Subject: flacfix script, cpm completion update, newsboat urls, new install_clean patch X-Git-Url: https://git.martlubbers.net/?a=commitdiff_plain;h=8a098d0edf56fcbcd680ce68329afb1f707f2243;p=dotfiles.git flacfix script, cpm completion update, newsboat urls, new install_clean patch --- diff --git a/clean/.local/bin/install_clean.sh b/clean/.local/bin/install_clean.sh index 0bcd7f3..7b4617e 100755 --- a/clean/.local/bin/install_clean.sh +++ b/clean/.local/bin/install_clean.sh @@ -75,53 +75,51 @@ patch /opt/clean/lib/StdEnv/StdGeneric.icl <&2 + exit 1 +fi + +while [ "$#" -ge 1 ]; +do + samplerate="$(metaflac --show-sample-rate "$1")" + bitdepth="$(metaflac --show-bps "$1")" + if ! [ "$samplerate" = 44100 -o "$samplerate" = 4800 -a $bitdepth = 16 ] + then + tfile="$(mktemp --tmpdir --suffix=.flac)" + sox "$1" -r 44100 -b 16 "$tfile" + mv -v "$tfile" "$1" + fi + shift +done diff --git a/vim/.vim/spell/en.utf-8.add b/vim/.vim/spell/en.utf-8.add index 87c9e57..867005b 100644 --- a/vim/.vim/spell/en.utf-8.add +++ b/vim/.vim/spell/en.utf-8.add @@ -13,3 +13,4 @@ backends iTasks mTask IOT +preinstalled diff --git a/vim/.vim/spell/en.utf-8.add.spl b/vim/.vim/spell/en.utf-8.add.spl deleted file mode 100644 index 91310c5..0000000 Binary files a/vim/.vim/spell/en.utf-8.add.spl and /dev/null differ