From 71c918250286497ae76a3cb22c928dbe5f851992 Mon Sep 17 00:00:00 2001 From: Rustam Vishnyakov Date: Mon, 1 Aug 2016 20:14:45 +0300 Subject: [PATCH] Command-line formatter startup scripts --- bin/scripts/unix/format.sh | 7 +++++++ bin/scripts/win/format.bat | 2 -- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 bin/scripts/unix/format.sh diff --git a/bin/scripts/unix/format.sh b/bin/scripts/unix/format.sh new file mode 100644 index 000000000000..40086f8318a8 --- /dev/null +++ b/bin/scripts/unix/format.sh @@ -0,0 +1,7 @@ +#!/bin/sh +# ------------------------------------------------------ +# @@product_full@@ formatting script. +# ------------------------------------------------------ + +IDE_BIN_HOME="${0%/*}" +exec "$IDE_BIN_HOME/@@script_name@@" format "$@" diff --git a/bin/scripts/win/format.bat b/bin/scripts/win/format.bat index 2ddcbd269531..1baf08cd9b78 100644 --- a/bin/scripts/win/format.bat +++ b/bin/scripts/win/format.bat @@ -4,7 +4,5 @@ :: @@product_full@@ formatting script. ::---------------------------------------------------------------------- -SET DEFAULT_PROJECT_PATH=%CD% - SET IDE_BIN_DIR=%~dp0 CALL "%IDE_BIN_DIR%\@@script_name@@" format %*