From 4dcc8f52a99080113e94e6192d28f8e641cebb8b Mon Sep 17 00:00:00 2001 From: Amrit Panesar Date: Sat, 5 Nov 2016 19:36:40 -0700 Subject: [PATCH] Add local_config, git ignore local config, and add exmaple file, for deployments --- .gitignore | 1 + .local_config_example | 10 ++++++++++ deploy | 4 +++- 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 .local_config_example diff --git a/.gitignore b/.gitignore index e0be75b..c7721b3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ # Created by https://www.gitignore.io/api/osx,windows,git,c,c++,visualstudio,visualstudiocode,sublimetext,netbeans,intellij,sublimetext,cmake,codeblocks,assembler,atmelstudio,eclipse,jetbrains,linux,macos bin/ +.local_config ### Intellij ### # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm diff --git a/.local_config_example b/.local_config_example new file mode 100644 index 0000000..e94d302 --- /dev/null +++ b/.local_config_example @@ -0,0 +1,10 @@ +#!/bin/bash +############################################################################### +# .local_config +############################################################################### +# +# + +export DeployDirectory='/Volumes/boot/' + +export DeployDevice='/Volumes/boot' diff --git a/deploy b/deploy index dfb33ef..60e7993 100755 --- a/deploy +++ b/deploy @@ -1,3 +1,5 @@ #!/bin/bash -cp bin/kernel.img /Volumes/boot/ && sudo umount /Volumes/boot +source .local_config + +cp bin/kernel.img $DeployDirectory && sudo umount $DeployDevice