scrape-url improvements
[conkeror.git] / contrib / mketags.sh
blob868ee736914052efb0c520a6645adac96bb0a197
1 #! /bin/bash
3 # (C) Copyright 2007 John J. Foerch
5 # Use, modification, and distribution are subject to the terms specified in the
6 # COPYING file.
8 function do_target_etags () {
9 ETAGSDIR="$1"
10 if [[ -z "$ETAGSDIR" ]]; then
11 ETAGSDIR=.
13 ETAGSDIR="${ETAGSDIR%/}/TAGS"
14 echo -n "Building $ETAGSDIR ..."
15 etags -o "$ETAGSDIR" $(find -name \*.js -and \! -name '*[~#]*')
16 echo ok
19 do_target_etags "$1"