View Single Post
Old 09-28-2008, 02:52 PM   #13
drago
Enthusiast
drago began at the beginning.
 
Posts: 28
Karma: 10
Join Date: Jul 2006
Location: Budapest, Hungary
Device: KPW, BrokenfirstgeniLiad
Mobipocket font switcher alpha - help needed

I created an installer package for switching the Mobipocket font to the nice and readable Liberation Serif font. But this is my first shell script, so I need someone with ssh acces to test it for me before releasing it to the public, as I would not want to brick anyones illiad.

Would this script work with the .ttf files in the script directory?

Quote:
#!/bin/sh
export scriptdir=`/usr/bin/dirname "$0"`
cd "$scriptdir"
rm /usr/share/fonts/truetype/ttf-western-default/Vera.ttf
cp Vera.ttf /usr/share/fonts/truetype/ttf-western-default/
rm /usr/share/fonts/truetype/ttf-western-default/VeraBd.ttf
cp VeraBd.ttf /usr/share/fonts/truetype/ttf-western-default/
rm /usr/share/fonts/truetype/ttf-western-default/VeraIt.ttf
cp VeraIt.ttf /usr/share/fonts/truetype/ttf-western-default/
rm /usr/share/fonts/truetype/ttf-western-default/VeraBI.ttf
cp VeraBI.ttf /usr/share/fonts/truetype/ttf-western-default/
I am attaching a preliminary version of the installer for testing purposes, please use it only if you have ssh, or feel confident that you can restore your illiad if things don't work out.

Thanks
Attached Files
File Type: zip Mobifontswitcher.zip (503.8 KB, 199 views)
drago is offline   Reply With Quote