Include C build scripts
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
This commit is contained in:
parent
fd9fd41be9
commit
76f1d0d78d
5
C/scripts/build.sh
Normal file
5
C/scripts/build.sh
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#Compiles the entire program then runs it, producing an executable.
|
||||||
|
#C
|
||||||
|
if gcc $(find . -type f -name "*.c") -lncurses -o ${PROJECT_NAME}; then
|
||||||
|
./${PROJECT_NAME}
|
||||||
|
fi
|
20
C/scripts/commit.sh
Executable file
20
C/scripts/commit.sh
Executable file
@ -0,0 +1,20 @@
|
|||||||
|
#Adds a commit message and pushes project to github repository.
|
||||||
|
#C
|
||||||
|
COMMIT_MESSAGE="$*"
|
||||||
|
FIRST_LINE=true
|
||||||
|
while IFS= read -r line
|
||||||
|
do
|
||||||
|
if [ "$FIRST_LINE" = true ]; then
|
||||||
|
COMMIT_MESSAGE+="
|
||||||
|
|
||||||
|
Co-authored-by: $line"
|
||||||
|
FIRST_LINE=false
|
||||||
|
else
|
||||||
|
COMMIT_MESSAGE+="
|
||||||
|
Co-authored-by: $line"
|
||||||
|
fi
|
||||||
|
done < utils/.coauthors
|
||||||
|
git add -u
|
||||||
|
git add *
|
||||||
|
git commit -m "$COMMIT_MESSAGE"
|
||||||
|
git push
|
Loading…
x
Reference in New Issue
Block a user