diff options
Diffstat (limited to 'fbreader/scripts/install_config.sh')
-rwxr-xr-x | fbreader/scripts/install_config.sh | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/fbreader/scripts/install_config.sh b/fbreader/scripts/install_config.sh new file mode 100755 index 0000000..902ee0d --- /dev/null +++ b/fbreader/scripts/install_config.sh @@ -0,0 +1,33 @@ +#!/bin/sh + +if [ $# != 3 ]; then + echo -e "usage\n $0 <platform> <ui_type> <install_dir>"; + exit 0; +fi; + +case "$1" in + desktop|win32) + ;; + macosx) + ;; + maemo) + case "$2" in + maemo5) + config_file=data/default/config.maemo5.xml + ;; + *) + config_file=data/default/config.maemo.xml + ;; + esac; + ;; + pepperpad3) + ;; + zaurus_640x480) + ;; + *) + ;; +esac; + +if [ "$config_file" != "" ]; then + install -m 0644 $config_file $3/config.xml; +fi; |