Skip to content

Commit

Permalink
moving to utils folder
Browse files Browse the repository at this point in the history
  • Loading branch information
darcato committed Dec 12, 2018
1 parent 7938d8a commit 3666d47
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ patchesdir="$configdir/patches"
# cd to repository folder
cd "$(dirname "$0")" || exit 1

utils="./utils/"

#Install the executable
echo "Installing epicsmng..."
install -d "$dest"
Expand All @@ -38,9 +40,9 @@ fi
install -d "$completion_dir"
if ! grep -qs "Installed by epicsmng" "$HOME/.bash_completion"; then
[ -f "$HOME/.bash_completion" ] && mv "$HOME/.bash_completion" "$completion_dir/original.bash"
cp ./completion_include.bash "$HOME/.bash_completion"
cp "$utils/completion_include.bash" "$HOME/.bash_completion"
fi
install -m 644 ./epicsmng-completion.bash "$completion_dir"
install -m 644 "$utils/epicsmng-completion.bash" "$completion_dir"

#Remove existing sources to avoid conflicts
rm -rf "$share"
Expand All @@ -55,11 +57,11 @@ if ! install -d "$patchesdir"; then
fi

#Install default config overwriting existing one
cp ./default.settings "$configdir"
cp "$utils/default.settings" "$configdir"

#if configdir empty, populate it with example user config
if [ -z "$(ls -A "$settingsdir")" ]; then
cp ./user.settings "$settingsdir"
cp "$utils/user.settings" "$settingsdir"
fi

echo "Done!"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 3666d47

Please sign in to comment.