Git 2.48
[git/gitster.git] / Documentation / generate-mergetool-list.sh
blob6700498b93be5358d992530b8dee39c08f02bd8d
1 #!/bin/sh
3 if test "$#" -ne 3
4 then
5 echo >&2 "USAGE: $0 <SOURCE_DIR> <MODE> <OUTPUT>"
6 exit 1
7 fi
9 SOURCE_DIR="$1"
10 TOOL_MODE="$2"
11 OUTPUT="$3"
12 MERGE_TOOLS_DIR="$SOURCE_DIR/mergetools"
15 . "$SOURCE_DIR"/git-mergetool--lib.sh &&
16 show_tool_names can_$TOOL_MODE
17 ) | sed -e "s/\([a-z0-9]*\)/\`\1\`;;/" >"$OUTPUT"