This code aims at helping users of jutge.org organize and verify their code.
When installing, this code creates a folder for every part of your course and puts useful scripts in those folders.
Inside a Part folder, the new.sh
can be used to quickly create a folder for a jutge.org problem. It also downloads a pdf explaining the problem and all of the public tests in the ./PN/PXXXXX/samples
directory.
Moreover it creates a check-samples.sh
that when executed checks if the compiled code passes those tests.
You can configure the jutge enviroment script so it automatically inits git in every problem's repository for version control.
Puts the most recent main.cpp file to have passed the check-samples.sh into the main directory with the name export.cpp
to easily upload it to jutge.org
Run bash settings.sh
in the main directory to open the setting manager script.
To properly run the scripts one should have installed
- git
- wget
- unzip (most linux distros have them by default, if not you can very easily google how to install them or check if you have them)
Clone this repository into your computer by doing git clone https://github.com/wamuM/jutge-enviroment <directory>
(where directory is where you want everything to be, for instance PRO1
)
cd <directory>
into the clonned repository and execute install.sh by doing bash install.sh
Clone this repository into your computer (not the same directory as the not updated one) by doing git clone https://github.com/wamuM/jutge-enviroment <directory>
(where directory is where you want everything to be for instance UPDATE_PRO1
)
cd <directory>
into the clonned repository and execute install.sh by doing bash update.sh