am b43cf696: am 848b8e9d: am fa2ce3b3: am f73f79f1: Merge "Use /filelist when OUT_DIR is set" into mnc-dev
* commit 'b43cf69672c72c025f0fe764d49ec950e3b57b81': Use $OUT_DIR/filelist when OUT_DIR is set
This commit is contained in:
commit
10abe69478
12
envsetup.sh
12
envsetup.sh
|
@ -1350,14 +1350,20 @@ function godir () {
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
T=$(gettop)
|
T=$(gettop)
|
||||||
if [[ ! -f $T/filelist ]]; then
|
if [ ! "$OUT_DIR" = "" ]; then
|
||||||
|
mkdir -p $OUT_DIR
|
||||||
|
FILELIST=$OUT_DIR/filelist
|
||||||
|
else
|
||||||
|
FILELIST=$T/filelist
|
||||||
|
fi
|
||||||
|
if [[ ! -f $FILELIST ]]; then
|
||||||
echo -n "Creating index..."
|
echo -n "Creating index..."
|
||||||
(\cd $T; find . -wholename ./out -prune -o -wholename ./.repo -prune -o -type f > filelist)
|
(\cd $T; find . -wholename ./out -prune -o -wholename ./.repo -prune -o -type f > $FILELIST)
|
||||||
echo " Done"
|
echo " Done"
|
||||||
echo ""
|
echo ""
|
||||||
fi
|
fi
|
||||||
local lines
|
local lines
|
||||||
lines=($(\grep "$1" $T/filelist | sed -e 's/\/[^/]*$//' | sort | uniq))
|
lines=($(\grep "$1" $FILELIST | sed -e 's/\/[^/]*$//' | sort | uniq))
|
||||||
if [[ ${#lines[@]} = 0 ]]; then
|
if [[ ${#lines[@]} = 0 ]]; then
|
||||||
echo "Not found"
|
echo "Not found"
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue