source: trunk/third/mozilla/netwerk/gen-makefile.sh @ 18860

Revision 18860, 725 bytes checked in by rbasch, 21 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r18859, which included commits to RCS files with non-trunk default branches.
  • Property svn:executable set to *
Line 
1#!/bin/sh
2
3# Relative location of |makefiles|
4MODULE_DIR="mozilla/netwerk"
5
6# Name of module
7MODULE=`basename $MODULE_DIR`
8
9# Depth of module from topsrcdir
10MODULE_DEPTH=`echo $MODULE_DIR | sed -e 's|[^/]||g' -e 's|/|../|g' -e 's|/$||'`
11
12# Relative directory script was run from
13RUN_DIR=`echo $PWD | sed -e 's|.*\('$MODULE_DIR'\)$|\1|'`
14
15if [ -z "$RUN_DIR" -o "$RUN_DIR" != "$MODULE_DIR" ]
16then
17  echo
18  echo "This script needs to be run from $MODULE_DIR"
19  echo
20  exit -1
21fi
22
23if [ -n "$MODULE_DEPTH" ]
24then
25  cd $MODULE_DEPTH
26fi
27
28if [ -f config.status ]
29then
30  CONFIG_FILES=`cat $MODULE/makefiles` ./config.status
31else
32  echo
33  echo "Missing config.status in $PWD"
34  echo "Have you run ./configure yet?"
35  echo
36  exit -1
37fi
Note: See TracBrowser for help on using the repository browser.