source: flacrip/trunk/flac2properties @ 46

Last change on this file since 46 was 46, checked in by peter, 9 years ago

flac2properties:

  • takes multiple files to convert
  • removes the properties file if empty (i.e., conversion was unsuccessful)
  • Property svn:executable set to *
File size: 239 bytes
Line 
1#!/bin/bash
2
3for FLAC in "$@"; do
4    if [ -e "$FLAC" ]; then
5        PROPERTIES=$(sed -e's/\.flac$/.properties/' <<< "$FLAC")
6        echo $FLAC
7        mbz --flac "$FLAC" > "$PROPERTIES"
8        if [ ! -s "$PROPERTIES" ]; then
9            rm "$PROPERTIES"
10        fi
11    fi
12done
Note: See TracBrowser for help on using the repository browser.