Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5961850
phan
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
890 B
Referenced Files
None
Subscribers
None
phan
View Options
#!/bin/sh
# Root directory of project
export
ROOT
=
`
git
rev-parse
--show-toplevel
`
# Phan's directory for executables
export
BIN
=
$ROOT
/.phan/bin
# Phan's data directory
export
DATA
=
$ROOT
/.phan/data
mkdir
-p
$DATA
;
# Go to the root of this git repo
pushd
$ROOT
>
/dev/null
# Get the current hash of HEAD
export
REV
=
`
git
rev-parse
HEAD
`
# Create the data directory for this run if it
# doesn't exist yet
export
RUN
=
$DATA
/
$REV
mkdir
-p
$RUN
$BIN
/mkfilelist
>
$RUN
/files
# Run the analysis, emitting output to the console
# and using a previous state file.
phan
\
--progress-bar
\
--project-root-directory
$ROOT
\
--output
$RUN
/issues
&&
exit
$?
# Re-link the latest directory
rm
-f
$ROOT
/.phan/data/latest
ln
-s
$RUN
$DATA
/latest
# Output any issues that were found
cat
$RUN
/issues
popd
>
/dev/null
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Sat, Oct 3, 08:28 (1 w, 5 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
20/0a/0db313b062f3476c9ddf160c04da
Default Alt Text
phan (890 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment