From 2d62dfa50b07647fbd43565a019e20a332a7d77f Mon Sep 17 00:00:00 2001 From: Vincent Riquer Date: Sun, 31 Mar 2013 00:00:02 +0100 Subject: [PATCH] fat32compat --- atom | 18 +++++++++++++++++- doc/config | 2 ++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/atom b/atom index c2a43d0..d58b74a 100755 --- a/atom +++ b/atom @@ -14,6 +14,7 @@ EFMTINVPARM=49 # config structures declare -A \ destinationchannels \ + destinationfat32compat \ destinationcopymime \ destinationformat \ destinationfrequency \ @@ -233,7 +234,7 @@ getConfigDestination() { "'off'" ;; esac - ;; + ;; 'rename') case "$value" in */*) @@ -242,6 +243,21 @@ getConfigDestination() { esac destinationrename["$destination"]="${value##*/}" ;; + 'fat32compat') + case $value in + 'true'|'on'|'yes') + destinationfat32compat["$destination"]=1 + ;; + 'false'|'off'|'no') + destinationfat32compat["$destination"]=0 + ;; + *) + echo "fat32compat takes values:" \ + "'yes' ,'true' ,'on', 'no', 'false',"\ + "'off'" + ;; + esac + ;; 'skip_mime-type') destinationskipmime[$destination]="${destinationskipmime[$destination]:+${destinationskipmime[$destination]}|}$value" ;; diff --git a/doc/config b/doc/config index 9b905df..5494d61 100644 --- a/doc/config +++ b/doc/config @@ -66,6 +66,8 @@ Sections: %{track}, %{year}. Untagged files or files in unrecognized formats will not be changed. + * fat32compat /: Rename files for compatibility with FAT32 + filesystems. * skip_mime-type : Files with mime-type will not be included in that destination. For more than one mime-type, use multiple times, as needed. The '*' character is a wildcard.