Branch: Tag:

2000-11-20

2000-11-20 12:29:14 by Per Hedbor <ph@opera.com>

Nice automatic generation of the files (type make), and also updated to match the source files

Rev: server/translations/Makefile:1.1
Rev: server/translations/configs/.cvsignore:1.1
Rev: server/translations/configs/admin_tasks.xml:1.2
Rev: server/translations/configs/roxen_config.xml:1.6
Rev: server/translations/configs/roxen_message.xml:1.3
Rev: server/translations/configs/roxen_start.xml:1.3
Rev: server/translations/eng/admin_tasks.xml:1.3
Rev: server/translations/eng/mod_obox.xml:1.1
Rev: server/translations/eng/roxen_config.xml:1.7
Rev: server/translations/eng/roxen_message.xml:1.6
Rev: server/translations/eng/roxen_start.xml:1.7
Rev: server/translations/scripts/build_from_config:1.1
Rev: server/translations/scripts/make_config:1.1
Rev: server/translations/scripts/make_mod_config:1.1

1: + # configurable stuff + EXTRACT=/home/per/src/Pike/7.1/bin/extract.pike + PIKE=pike    -  + # do not alter + all: modules +  @echo "2. Rebuilding .xml config files" +  @for a in configs/*.xml ; do \ +  pkg=`echo $$a | sed -e s',.xml,,' -e s',.*/,,'`; \ +  ./scripts/make_config $$pkg configs/$$pkg.xml ; \ +  done +  @echo "3. Rebuilding translation files" +  @for a in configs/*.xml ; do \ +  pkg=`echo $$a | sed -e s',.xml,,' -e s',.*/,,'`; \ +  ./scripts/build_from_config configs/$$pkg.xml $(PIKE) $(EXTRACT); \ +  done +  + modules: +  @echo "1. Finding modules" +  @for a in `find ../modules/ -name '*.pike'` ; do \ +  if grep -c '#!NO' $$a >/dev/null 2>&1; then \ +  :;\ +  else \ +  module='"mod_'`echo $$a|sed -e s',../modules/.*/,,' -e s',.pike,,'`'"';\ +  if grep -c "$$module" $$a >/dev/null 2>&1; then \ +  ./scripts/make_mod_config $$module $$a; \ +  fi;\ +  fi ; \ +  done +  + clean: +  rm configs/*~ +  rm configs/mod_*.xml   Newline at end of file added.