mirror of
https://github.com/troglobit/libuev.git
synced 2026-10-19 10:49:31 +00:00
21 lines
380 B
Bash
Executable File
21 lines
380 B
Bash
Executable File
#!/bin/bash
|
|
##
|
|
# $Id$
|
|
# (C) Copyright 2009 Amplex, fm@amplex.dk
|
|
#
|
|
# ABSTRACT: Global grep with prebuilt index
|
|
##
|
|
|
|
Dir=$(pwd)
|
|
while [ "$Dir" ] ;do
|
|
[ -f $Dir/.glimpse_index ] && break
|
|
Dir=${Dir%/*}
|
|
done
|
|
[ "$Dir" ] || { echo "No glimpse index in this directory branch" ; exit 1; }
|
|
|
|
echo "-- Paths relative to: $Dir"
|
|
exec glimpse-tt -y -H $Dir "$@"
|
|
|
|
|
|
// vim: set sw=3 sts=3 et:
|