Sophie

Sophie

distrib > * > 2010.0 > * > by-pkgid > 783c57dfbe3d7110dd1a89e5d347bad1 > files > 113

Eterm-0.9.5-8mdv2010.0.i586.rpm

#!/bin/sh
#
# Regenerate menus.cfg files for themes from the master file
#
# 23 August 2001
# Michael Jennings <mej@eterm.org>
#
# (Consider this code public domain.  I don't care who does what with
# it.  It's not that significant.)  :-)
#

PATH=/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/sbin:/usr/sbin
if [ "x$1" = "x-d" ]; then
  shift
  DIR=$1
  shift
fi

for i in "$@" ; do
    echo $i
    DEF=`echo $(basename $i) | tr '[a-z]' '[A-Z]'`
    m4 -D$DEF ${DIR:-.}/menu-master-file.m4 | perl -ne '/^\s*$/ || print;' > $i/menus.cfg
    chmod a+r,o-w $i/*.cfg
done