UPS: apcupsd clean sources
[tomato.git] / release / src / router / apcupsd / autoconf / rebuild-makefile.sh
blobfd6f1e5e90681f6639f4edd04e9d91dd1e37a56c
1 #!/bin/sh
3 # It takes as argument the absolute source directory.
4 # Rebuilds the Makefile in CWD.
6 # $1 = abssrcdir
7 CURDIR="`pwd`"
8 if test "$CURDIR" = "$1"
9 then
10 RELPATH="."
11 else
12 RELPATH="`echo $CURDIR | sed -e "s|$1/||g"`"
15 export SINGLE_MAKEFILE=yes
16 export CONFIG_FILES=$RELPATH/Makefile
17 export CONFIG_HEADERS=
18 cd $1
19 ./config.status