diff --git a/bin/submit.sh b/bin/submit.sh deleted file mode 100755 index bbd8b58..0000000 --- a/bin/submit.sh +++ /dev/null @@ -1,57 +0,0 @@ -#!/usr/bin/bash - -# Fail on first error -set -e - -echo "***************************************************************" -echo "Abgabe einreichen" -echo "***************************************************************" -echo "" -cd sources - -# Test, if project builds -echo "------------------------------------------------------------------" -echo "Build..." -echo "" -if ! mvn; then - echo -e "\e[31m" - echo "💣 Projekt baut nicht und kann deswegen nicht abgegeben werden." - echo "💣 Bitte beheben Sie alle gemeldeten Fehler und versuchen Sie " - echo "💣 es dann erneut " - echo -e "\e[0m" - exit 1 -else - echo -e "\e[32m" - echo "✅ Projekt gebaut " - echo -e "\e[0m" -fi - -# Test, if all changes are committed -echo "------------------------------------------------------------------" -echo "Teste git-Staus..." -if ! git status | grep -q "nothing to commit, working tree clean"; then - echo -e "\e[31m" - echo "💣 Bitte checken Sie alle Änderungen per git ein. " - echo -e "\e[0m" - exit 1 -else - echo -e "\e[32m" - echo "✅ Alle Dateien eingecheckt " - echo -e "\e[0m" - -fi - -# Submit -echo "------------------------------------------------------------------" -echo "Sende Lösung..." -if ! git push origin master; then - echo -e "\e[31m" - echo "💣 Push nicht erfolgreich. Bitte beheben Sie den Fehler und " - echo "💣 starten Sie das Skript erneut. " - echo -e "\e[0m" - exit 1 -else - echo -e "\e[32m" - echo "✅ Aktuelle Lösungen eingereicht " - echo -e "\e[0m" -fi diff --git a/bin/update.sh b/bin/update.sh deleted file mode 100755 index f0523ce..0000000 --- a/bin/update.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/bash - -# Fail on first error -set -e - -# Clone repo if not already present -if [ ! -d ".assignments" ]; then - git clone gitea@gitty.informatik.hs-mannheim.de:pr2-lecture/assignments.git .assignments - mkdir -p sources/src/main/java -fi - -# Sync exercises with local directory -echo "---------------------------------------------------------------" -echo "Hole neue Aufgaben und Quelltexte " -echo "---------------------------------------------------------------" -(cd .assignments && git pull origin master) -rsync --ignore-existing -raz .assignments/sources/ sources/ - -for dir in .assignments/Assignment_*; do - rsync --ignore-existing -raz "$dir" ./ -done - -# Assignment files -rsync --ignore-existing -raz --include='Assignment_*' --exclude='*' .assignments/* ./ - -# Libraries -rsync -raz .assignments/sources/lib/ ./sources/lib - -cp .assignments/readme.md README.md - -# Update the scripts -cp -R .assignments/bin ./ diff --git a/sources/.project b/sources/.project new file mode 100644 index 0000000..eaeb7fb --- /dev/null +++ b/sources/.project @@ -0,0 +1,28 @@ + + + pr2 + Vorlage für PR2 + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + + + 1675099241341 + + 30 + + org.eclipse.core.resources.regexFilterMatcher + node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__ + + + +