mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 06:35:42 +00:00
38 lines
725 B
Bash
Executable File
38 lines
725 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Relative location of |makefiles|
|
|
MODULE_DIR="mozilla/netwerk"
|
|
|
|
# Name of module
|
|
MODULE=`basename $MODULE_DIR`
|
|
|
|
# Depth of module from topsrcdir
|
|
MODULE_DEPTH=`echo $MODULE_DIR | sed -e 's|[^/]||g' -e 's|/|../|g' -e 's|/$||'`
|
|
|
|
# Relative directory script was run from
|
|
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
|
|
CONFIG_FILES=`cat $MODULE/makefiles` ./config.status
|
|
else
|
|
echo
|
|
echo "Missing config.status in $PWD"
|
|
echo "Have you run ./configure yet?"
|
|
echo
|
|
exit -1
|
|
fi
|