Skip to content

Commit

Permalink
Move bash scripts to their own folder
Browse files Browse the repository at this point in the history
  • Loading branch information
neilsarkar committed Feb 21, 2021
1 parent bbba305 commit 5f1bbdf
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 10 deletions.
26 changes: 26 additions & 0 deletions bash/pull.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
echo "Choose a project:"
echo "[1] king_of_the_hat"
echo "[2] Package Party"
printf "=> "
read;

case $REPLY in
1)
projectName="king_of_the_hat"
;;
2)
projectName="Package Party"
;;
*)
echo "You entered ${REPLY} but we looking for a number on the list"
exit
;;
esac

cp -r "$HOME/work/${projectName}/Packages/violetui/" .
tee Runtime/Navigation/ScreenId.cs &> /dev/null <<EOF
// Names are automatically added through ScreenIdGenerator.cs, deletions are done manually :)
public enum ScreenId {
None = 0,
}
EOF
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion update.bash → bash/update.bash
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
printf 'Copy code from sample project? [y/N]: '
read answer
if [ "$answer" = "y" ]; then
cp -r ~/work/King_of_the_Hat/Packages/violetui/ .
./pull.bash
fi

tee Runtime/Navigation/ScreenId.cs &> /dev/null <<EOF
Expand Down
File renamed without changes.
9 changes: 0 additions & 9 deletions pull.bash

This file was deleted.

0 comments on commit 5f1bbdf

Please sign in to comment.