File: svnscan

package info (click to toggle)
graudit 4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,256 kB
  • sloc: sh: 1,134; makefile: 82; php: 62; jsp: 24
file content (12 lines) | stat: -rwxr-xr-x 253 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
# download and scan a single github repo, output to stdout
if [ -z $1 ]; then
    echo "$0 <https://svn/repo/url>"
    exit 2
fi
url=$1
echo "Scanning $url!"
mkdir -p churn
cd churn
svn co $url
graudit -x *.js,*.json,*.map,*.sql -d flatline .