#!/bin/sh

# Helper script for the makefile. Installs the nfont $1 in directory $2.

if [ x$3 != xFoO ]; then
    echo "$0: you're not supposed to run this script manually."
    echo "Run 'make' instead."
    exit
fi

if [ "x$1" = x ]; then
    echo "missing parameter 1"
    exit
fi
if [ "x$2" = x ]; then
    echo "missing parameter 2"
    exit
fi

rm -rf "$2/$1" && mkdir "$2/$1" && chmod a+rx "$2/$1" && cp "$1"/* "$2/$1/" && chmod a+r "$2/$1"/*

