-
Notifications
You must be signed in to change notification settings - Fork 319
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added missing "configure" script in new module.
- Loading branch information
1 parent
ec54d4c
commit f9b3f22
Showing
1 changed file
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
#! /bin/sh | ||
|
||
parentdir=`pwd` | ||
thisdir=$parentdir | ||
|
||
# The following test constructs relative path from the module | ||
# directory to the configuration directory. If you know this path | ||
# you can substitute this with | ||
# configdir=<relative_path> | ||
# It is very important that the configdir path is relative. | ||
|
||
configdir="configdir" | ||
|
||
while test "$parentdir" != "/" -a "$configdir" = "configdir"; do | ||
if test -d "$parentdir/config" ; then | ||
configdir=$parentdir/config | ||
else | ||
parentdir=`echo $parentdir | sed 's/\/[^\/]*$//'` | ||
fi | ||
done | ||
|
||
if test "$configdir" = "configdir" ; then | ||
echo "Cannot find configure directory" | ||
exit 1 | ||
fi | ||
|
||
if test $# != 0; then | ||
case $1 in | ||
-a) | ||
shift | ||
cd "$configdir" | ||
echo "running configure in config-directory" | ||
./configure $* | ||
cd $thisdir | ||
echo "running configure for this module" | ||
sh "$configdir/confmod" --srcdir=. $* | ||
;; | ||
-c) | ||
shift | ||
cd "$configdir" | ||
echo "running configure in config-directory" | ||
./configure $* | ||
;; | ||
*) | ||
echo "running configure for this module" | ||
sh "$configdir/confmod" --srcdir=. $* | ||
;; | ||
esac | ||
else | ||
echo "running configure for this module" | ||
sh "$configdir/confmod" --srcdir=. $* | ||
fi | ||
|
||
|
||
|
||
|