-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(scripts): Add comments on deployment scripts
- Loading branch information
1 parent
6ba7ad7
commit ab0b87f
Showing
6 changed files
with
27 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
#!/bin/bash | ||
|
||
# Suppression : | ||
# - des archives générées | ||
# - des fichiers compilés | ||
# - de la Javadoc générée | ||
|
||
rm -f *.tar.gz | ||
rm -rf bin/* | ||
rm -rf docs/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
#!/bin/bash | ||
|
||
# Clean le projet | ||
./cleanAll | ||
|
||
# Compilation du projet | ||
echo "Compiling into bin/ folder" | ||
javac -d bin/ src/*.java | ||
echo "Done!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
#!/bin/bash | ||
|
||
# Clean le projet | ||
./cleanAll | ||
|
||
# Récupération des dernières sources du projet | ||
echo "Récupération de la dernière version du projet" | ||
git pull --quiet | ||
|
||
# Création de l'archive | ||
echo "Creating archive..." | ||
|
||
tar -cf BAUMARD-MAQUENNE.tar.gz ./docs ./src ./bin ./compile ./genDoc ./cleanAll ./hello ./runTests ./README.md | ||
|
||
echo "Archive created with success!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
#!/bin/bash | ||
|
||
# Génération de la Javadoc | ||
echo "Generating javadoc into /docs folder" | ||
|
||
javadoc -d ./docs -quiet ./src/*.java -Xdoclint:none | ||
|
||
echo "Done!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
#!/bin/bash | ||
|
||
# Création du dossier 'bin' si inexistant | ||
if [ ! -d "bin" ]; then | ||
echo "Directory 'bin' does not exist. Creating it..." | ||
mkdir bin | ||
fi | ||
|
||
# Compilation du code | ||
./compile | ||
|
||
# shellcheck disable=SC2164 | ||
cd bin | ||
java HelloWorld Jordan | ||
java HelloWorld Mathis | ||
cd bin || exit | ||
|
||
# Exécution du programme | ||
java HelloWorld |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters