Project

General

Profile

« Previous | Next » 

Revision 1797

stop_imports: Call jobspecs relative to $selfDir, rather than assuming it will be run from the svn root dir

View differences:

stop_imports
1 1
#!/bin/sh
2 2
# Stops all running imports
3 3

  
4
self="${BASH_ARGV[0]}"
5
selfDir="$(dirname -- "$self")"
6

  
4 7
if test "${BASH_LINENO[0]}" = 0; then # was run without initial "."
5 8
    echo "Usage: . $0 (note initial \".\")"|fold -s >&2
6 9
    exit 2
7 10
fi
8 11

  
9
for job in $(jobs|grep -F 'make inputs/'|bin/jobspecs ); do kill $job; done
12
for job in $(jobs|grep -F 'make inputs/'|"$selfDir/jobspecs"); do
13
    kill $job
14
done

Also available in: Unified diff