Skip to content
This repository has been archived by the owner on Apr 20, 2021. It is now read-only.

Ubsefor/ub-sort

Repository files navigation

ub-sort

.github/workflows/Mac OS X.yml

A simple task for training to write in production-like style with full documentation and some unit-tests

Clone/Download

  • Clone this repo to your local machine using git clone https://github.com/ubsefor/ub-sort

Dependencies

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

Building

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

Launching

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

License

See the License