Reorganize code in spawn_process to be more robust to exceptions
[conkeror.git] / contrib / mketags.sh
blob6239b4a7a65ff51bc4c00643a031636777da3e23
1 #! /bin/bash
3 function do_target_etags () {
4 ETAGSDIR="$1"
5 if [[ -z "$ETAGSDIR" ]]; then
6 ETAGSDIR=.
7 fi
8 ETAGSDIR="${ETAGSDIR%/}/TAGS"
9 echo -n "Building $ETAGSDIR ..."
10 etags -o "$ETAGSDIR" $(find -name \*.js -and \! -name '*[~#]*')
11 echo ok
14 do_target_etags "$1"