Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6b18b4e

Browse files
committed
Add script to test indent time
1 parent d4bd9f0 commit 6b18b4e

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

‎clj/bin/indenttime

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/usr/bin/env bash
2+
3+
abort_with_help() {
4+
echo "usage: $(basename "0ドル") [-p PREFIX] file.clj"
5+
exit 1
6+
}
7+
8+
PREFIX='report_indent'
9+
10+
while getopts :p: opt; do
11+
case "$opt" in
12+
p) PREFIX="$OPTARG";;
13+
h) abort_with_help;;
14+
esac
15+
done
16+
shift $((OPTIND-1))
17+
18+
(($# == 1)) || abort_with_help
19+
20+
VIMRC="
21+
set runtimepath^=$(dirname "0ドル")/../..
22+
filetype plugin indent on
23+
syntax on
24+
profile start $(echo "${PREFIX}-$(date +%s.%N).log")
25+
profile! file $(dirname "0ドル")/../../syntax/clojure.vim
26+
profile! file $(dirname "0ドル")/../../indent/clojure.vim
27+
"
28+
29+
exec vim -N -u <(echo "$VIMRC") \
30+
-c 'call feedkeys("gg=G")' \
31+
-c 'call feedkeys(":silent quitall!\<CR>")' \
32+
"1ドル"

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /