A simple task for training to write in production-like style with full documentation and some unit-tests
- Clone this repo to your local machine using
git clone https://github.com/ubsefor/ub-sort
Mac OS
You need to install xcode command-line tools to build the project
*Nix
Get generic build-essentials for your distro, f.e.
Ubuntu and Debian-like:
$ sudo apt update
$ sudo apt install build-essential
RPM Linux distros (Fedora):
$ sudo dnf install make automake gcc gcc-c++ kernel-devel
Arch-like Linux distros:
$ sudo pacman -Sy base-devel
Mac OS X
If you are running Mac OS X on your host machine, run from the root folder of the repo:
Release:
$ xcodebuild -configuration Release
Debug:
$ xcodebuild -configuration Debug
Linux/BSD/Other *NIX
If you are running *Nix distributions on your host machine – run from the ub-sort directory (cd ub-sort):
Release:
$ make release
Debug:
$ make debug
Clean building directory:
$ make clean
Launch testing:
$ make tests
After building the project you can launch the executable from DerivedData/Build/Products/{Debug|Release}/
You need to specify a file to sort, placed in Files/ directory and left|right sorted file names as arguments to the ub-sort
See the License