Fully updated to the actual (Boussole v1) config and got rid of most things that shouldn't be there
This commit is contained in:
parent
6b616b44dd
commit
71f2b38a0d
192 changed files with 854 additions and 605 deletions
33
.local/bin/submit.sh
Executable file
33
.local/bin/submit.sh
Executable file
|
|
@ -0,0 +1,33 @@
|
|||
#!/bin/sh
|
||||
|
||||
bold=$(tput bold)
|
||||
normal=$(tput sgr0)
|
||||
|
||||
push() {
|
||||
clang-format-epita .
|
||||
git add --all
|
||||
git commit -m "push"
|
||||
git tag -ma "exercises-$exercise-$(git rev-parse --short HEAD)"
|
||||
# git tag -ma "exercises-tutorial-$exercise-$(git rev-parse --short HEAD)"
|
||||
git push --follow-tags
|
||||
}
|
||||
|
||||
# Main
|
||||
|
||||
if [ $# -ne 1 ]; then
|
||||
current_folder=${PWD##*/}
|
||||
echo "Submit as$bold $current_folder$normal ? [Y/n]"
|
||||
read yesno
|
||||
if [ "$yesno" == "y" ] || [ "$yesno" == "Y" ] || [ -z "$yesno" ]; then
|
||||
exercise=$current_folder
|
||||
echo "------------------------------------"
|
||||
echo "Pushing with tag$bold exercises-$exercise-$(git rev-parse --short HEAD)$normal"
|
||||
push
|
||||
else
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
else
|
||||
exercise=$1
|
||||
push
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue