Skip to content

Instantly share code, notes, and snippets.

@tkusano
Created September 12, 2010 13:47
Show Gist options
  • Save tkusano/576126 to your computer and use it in GitHub Desktop.
Save tkusano/576126 to your computer and use it in GitHub Desktop.
filter-gnome-japo.sh
#! /bin/sh
if [ $# -lt 2 ]; then
echo usage: `basename $0` input-dir output-dir 1>&2
exit 64
fi
input=$1
output=$2
if [ ! -d $input ]; then
echo Error: No $input directory which contains hogehoge.po
exit 64
fi
if [ ! -d $output ]; then
echo Error: No $output directory where output is produced.
exit 64
fi
pofilter --gnome \
--test=accelerators \
--language=ja \
--input=$input --output=$output
# end of script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment