msgadmin.sh revision 3f54fd611f536639ec30dd53c48e5ec1897cc7d9
########################################################################
# #
# This software is part of the ast package #
# Copyright (c) 2000-2011 AT&T Intellectual Property #
# and is licensed under the #
# Eclipse Public License, Version 1.0 #
# by AT&T Intellectual Property #
# #
# A copy of the License is available at #
# (with md5 checksum b35adb5213ca9657e911e9befb180842) #
# #
# Information and Software Systems Research #
# AT&T Research #
# Florham Park NJ #
# #
# Glenn Fowler <gsf@research.att.com> #
# #
########################################################################
command=msgadmin
USAGE=$'
[-?
@(#)$Id: msgadmin (AT&T Labs Research) 2001-06-08 $
]
operands are specified then all message files in the local
\b$INSTALLROOT\b source tree are operated on. Exactly one of
\b--generate\b, \b--remove\b, \b--translate\b, or \b--verify\b
must be specified.]
[D:debug?Passed to \btranslate\b(1).]
[a:all?Passed to \btranslate\b(1).]
[c:cache?Passed to \btranslate\b(1).]
[d:dialect?Operate on the dialects in the \b,\b separated \adialect\a list.
\b-\b means all dialects supported by \btranslate\b(1).]:[dialect:=-]
[f:force?Force binary catalog generation even when the current binary is newer
than the source.]
[g:generate?Generate and install \bgencat\b(1) binary message catalogs.]
[l:list?List each installed message catalog name paired with its input source.]
[n:show?Show commands but do not execute.]
[o:omit?Omit \btranslate\b(1) methods matching the \bksh\b(1)
\apattern\a.]:[pattern]
[r:remove?Remove all translated message files and work directories.]
[s:share?Generate and install \bmsggen\b(1) machine independent binary
message catalogs.]
[t:translate?Translate using \btranslate\b(1).]
[v:verify?Verify that translated message files satisfy \bgencat\b(1) syntax.]
[ file ... ]
[+SEE ALSO?\bgencat\b(1), \bksh\b(1), \bmsggen\b(1), \btranslate\b(1)]
'
;;
*) ARGV0=""
USAGE="Dcd:gno:rstv [ file ... ]"
;;
esac
usage()
{
OPTIND=0
exit 2
}
messages()
{
if [[ $PACKAGEROOT && -d $PACKAGEROOT ]]
then MSGROOT=$PACKAGEROOT
fi
}
integer n
D) debug=-D ;;
a) all=-a ;;
c) cache=-c ;;
f) force=1 ;;
n) exec=print show=-n ;;
*) usage ;;
esac
done
shift $OPTIND-1
for locale
C) set -- $(messages) ;;
esac
if [[ ! -f $1 ]]
for file
;;
;;
esac
fi
done
cd $owd
fi
done
;;
;;
;;
;;
for file
do n=0
do if [[ $num == +([0-9]) ]]
then ((n++))
if [[ $n != $num ]]
fi
n=$num
fi
fi
done < $file
done
;;
*) usage
;;
esac