#!/bin/bash

### Copyright notice at the bottom of this file ###

# $Id: Install_all,v 1.2 2012/01/13 18:24:38 adamm Exp adamm $
#
# $Source: /home/adamm/software/RCS/Install_all,v $

###
### Absolutely nothing fancy here -- it's really just an easy
### way to codify the order in which things need to be made
### and/or installed.
###


export PROG=$(basename $0)


main() {
    installProg asm2install	# REQUIRED BY EVERYTHING
    installProg simplePath	# Required?

    installProg getman		# Required to build C programs
    installProg hexify		# Required to build C programs

    installProg dateops		# Required by most scripts
    installProg edate		# Required by most scripts
    installProg mkstemp		# Required by most scripts

    # All remaining C programs, rather than figure out
    # which script depends on which programs
    installProg hd
    installProg isprint
    installProg lstat
    installProg numcmp
    installProg strcmp
    installProg strncmp

    # Scripts (regardless of language)
    installProg addrtool
    installProg baseconv
    installProg dseq
    installProg note
    installProg nthday
    installProg st
    installProg tester
} # main


installProg() {
    prog=$1
    cd $prog
    make
    make install
    cd ..
} # installProg


main "$@"


###
### Copyright, 2012, Adam Moskowitz. All rights reserved.
###
### Any redistribution of this software must retain the above copyright
### notice, this list of conditions, and the following disclaimer.
###
### Without specific prior written permission from the copyright holder,
### you may not charge a fee for the redistribution of this software.
###
### All other redistribution and use is hereby permitted.
###
### This software is provided "as is" and without any express or implied
### warranties, including, without limitation, the implied warranties of
### merchantability and fitness for a particular purpose.
###
