4 typeset USE_LANG_DIR="."
6 typeset REMOVE=${REMOVE:-removeVmsg}
11 -v) # version string comes on command line
13 [ -n "$1" ] && VERSION="@(#)$1"
15 -d) # use old vue2.0 method accessing vueversion.h
17 [ -r ../../../../X11/vueversion.h ] && {
18 VERSION=`grep static ../../../../X11/vueversion.h | \
19 sed s/static.*\=\ \"// | \
23 -r) # prevent removal of temp ".vmsg" files
29 *) # done with options
37 # Added while logic below to parse multiple .msg files form the arguments,
38 # this logic assumes the first .msg file passed in will be the name of the
39 # .cat file, thus remaining compatible with the old makeMesgcat.
44 while [ $# -gt 1 ]; do
46 base=${1%.*} # strip any extension
47 [ -n "$VERSION" ] && VERSION="\\\n$VERSION"
48 sed "s/@(#)version_goes_here/$VERSION/" <$USE_LANG_DIR/$base.msg >$USE_LANG_DIR/$base.vmsg
49 set -A msg_files "$msg_files $USE_LANG_DIR/$base.vmsg"
56 echo "Running gencat on $msg_files with LANG set to $1 "
57 rm -f $USE_LANG_DIR/$base.cat
58 LANG=$1 gencat $GENCAT_OPTIONS $USE_LANG_DIR/$base_file.cat $msg_files
62 chmod -w $USE_LANG_DIR/$base_file.cat
65 if [ "$REMOVE" = removeVmsg ]
67 echo " Removing $msg_files "
70 echo " Not removing $msg_files "