Skip to content

Commit 14c66db

Browse files
Use <<EOF ... EOF syntax in print_usage()
1 parent 086ad92 commit 14c66db

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

scripts/compile.sh

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@ repo=intel/graph-compiler
66
# set -x
77

88
print_usage() {
9-
echo "Usage:"
10-
echo "$0 "
11-
echo " [ -d | --dev ] Dev build, build LLVM in current env and place all to 'external' dir"
12-
echo " [ -l | --dyn ] Dynamical linking, requires rebuild of LLVM, activates 'dev' option"
13-
echo " [ -c | --clean ] Delete the build artifacts from the previous build"
14-
echo " [ -h | --help ] Print this message"
9+
cat <<EOF
10+
Usage:
11+
$(basename "$0")
12+
[ -d | --dev ] Dev build, build LLVM in current env and place all to 'external' dir
13+
[ -l | --dyn ] Dynamical linking, requires rebuild of LLVM, activates 'dev' option
14+
[ -c | --clean ] Delete the build artifacts from the previous build
15+
[ -h | --help ] Print this message
16+
EOF
1517
}
1618

1719
DEV_BUILD=false

0 commit comments

Comments
 (0)