source: branches/ithildin-1.1/tools/gendeps.sh @ 490

Revision 490, 359 bytes checked in by wd, 8 years ago (diff)

Add Id/Rev? keywords.

  • Property svn:executable set to *
  • Property svn:keywords set to Id Rev
Line 
1#!/bin/sh
2
3# This is a small script used to walk through the modules directory and
4# generate dependencies for all files which request them.
5
6from="$1"
7to="$2"
8
9# DO NOT CHANGE THIS UNLESS YOU MODIFY ALL FILES TO USE THE NEW WORD!
10depword="@DEPENDENCIES@:"
11
12rm -f $to
13for mod in `grep "$depword" $from | sed "s/^${depword}//"` ; do
14    echo $mod >> $to
15done
16
Note: See TracBrowser for help on using the repository browser.