1999-05-03 20:36:29 +04:00
|
|
|
#!/bin/sh
|
|
|
|
|
1999-05-03 22:11:50 +04:00
|
|
|
# Relative location of |makefiles|
|
1999-05-03 20:36:29 +04:00
|
|
|
MODULE_DIR="mozilla/netwerk"
|
1999-05-03 22:11:50 +04:00
|
|
|
|
|
|
|
# Name of module
|
|
|
|
MODULE=`basename $MODULE_DIR`
|
|
|
|
|
|
|
|
# Depth of module from topsrcdir
|
1999-05-03 20:36:29 +04:00
|
|
|
MODULE_DEPTH=`echo $MODULE_DIR | sed -e 's|[^/]||g' -e 's|/|../|g' -e 's|/$||'`
|
|
|
|
|
1999-05-03 22:11:50 +04:00
|
|
|
# Relative directory script was run from
|
1999-05-03 20:36:29 +04:00
|
|
|
RUN_DIR=`echo $PWD | sed -e 's|.*\('$MODULE_DIR'\)$|\1|'`
|
|
|
|
|
|
|
|
if [ -z "$RUN_DIR" -o "$RUN_DIR" != "$MODULE_DIR" ]
|
|
|
|
then
|
|
|
|
echo
|
|
|
|
echo "This script needs to be run from $MODULE_DIR"
|
|
|
|
echo
|
|
|
|
exit -1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -n "$MODULE_DEPTH" ]
|
|
|
|
then
|
|
|
|
cd $MODULE_DEPTH
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -f config.status ]
|
|
|
|
then
|
1999-05-03 22:11:50 +04:00
|
|
|
CONFIG_FILES=`cat $MODULE/makefiles` ./config.status
|
1999-05-03 20:36:29 +04:00
|
|
|
else
|
|
|
|
echo
|
|
|
|
echo "Missing config.status in $PWD"
|
|
|
|
echo "Have you run ./configure yet?"
|
|
|
|
echo
|
|
|
|
exit -1
|
|
|
|
fi
|