spin-sync 0.3.2

Synchronization primitives using spinlock. The interface resembles std::sync. The constructors of public structs are const; i.e. it is possible to declare static Mutex<T> as long as T can be build statically.
Documentation
#!/bin/sh

check_license() {
    local path="$1"
    if ! grep -q "LGPL-3.0-or-later OR Apache-2.0 OR BSD-2-Clause" "$path"; then
        echo "$path" 'lacks of the license.' >&2
        exit 1
    fi
}


(
    cd `git rev-parse --show-toplevel`

    for f in $(find src -type f -name '*.rs'); do
        check_license "$f"
    done

    cargo fmt -- --check || exit "$?"
    cargo test || exit "$?"

    exit 0
)