gecko-dev/netwerk/gen-makefile.sh

38 строки
725 B
Bash
Исходник Обычный вид История

#!/bin/sh
1999-05-03 22:11:50 +04:00
# Relative location of |makefiles|
MODULE_DIR="mozilla/netwerk"
1999-05-03 22:11:50 +04:00
# 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|/$||'`
1999-05-03 22:11:50 +04:00
# 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
1999-05-03 22:11:50 +04:00
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