# File vinclude
# Making include files for voice from the mgetty distribution.

# IMPORTANT: 
#   1) Root must run this script.
#   2) File $TO/voice.h requires editing; see note below.

# References: 
#     vgetty-maintainer@alphanet.ch
#     http://alpha.greenie.net/mgetty/index.html
#     http://www.leo.org/~doering/mgetty/index.html
#     File: Nov 2002: mgetty1.1.29-Nov25.tar.gz 983945 (bytes) 

# Here is an example of the files copied into /usr/local/include:

# [dale@clacker] /usr/local/include > ls
# adpcm.h     default.h   mgetty.h   syslibs.h    vm.h
# bitsizes.h  event.h     mg_utmp.h  tio.h        voice_config.h
# class1.h    fax_lib.h   NeXT.h     ugly.h       voice.h
# config.h    hardware.h  paths.h    util.h       wav.h
# conf_mg.h   header.h    policy.h   V253modem.h
# conf_sf.h   IS_101.h    pvf.h      version.h

# Target:
TO=/usr/local/include/voice
mkdir $TO

# Source:
MY=/home/dale/mgetty/mgetty-1.1.29 # Path to installed mgetty

DIRM=$MY
DIRV=$MY/voice/vm
DIRI=$MY/voice/include

# Files from voice/include (DIRI):
cd $DIRI; chmod 444 *.h
cp -p $DIRI/adpcm.h $TO/.
cp -p $DIRI/bitsizes.h $TO/.
cp -p $DIRI/config.h $TO/voice_config.h
cp -p $DIRI/default.h $TO/.
cp -p $DIRI/event.h $TO/.
cp -p $DIRI/hardware.h $TO/.
cp -p $DIRI/header.h $TO/.
cp -p $DIRI/IS_101.h $TO/.
cp -p $DIRI/NeXT.h $TO/.
cp -p $DIRI/paths.h $TO/.
cp -p $DIRI/pvf.h $TO/.
cp -p $DIRI/util.h $TO/.
cp -p $DIRI/V253modem.h $TO/.
cp -p $DIRI/version.h $TO/.
cp -p $DIRI/voice.h $TO/. # Remove '../../' from #includes in voice.h.
cp -p $DIRI/wav.h $TO/.

# Files from mgetty (DIRM):
cd $DIRM; chmod 444 *.h
cp -p $DIRM/class1.h $TO/.
cp -p $DIRM/conf_mg.h $TO/.
cp -p $DIRM/conf_sf.h $TO/.
cp -p $DIRM/config.h $TO/.
cp -p $DIRM/fax_lib.h $TO/.
cp -p $DIRM/mg_utmp.h $TO/.
cp -p $DIRM/mgetty.h $TO/.
cp -p $DIRM/policy.h $TO/.
cp -p $DIRM/syslibs.h $TO/.
cp -p $DIRM/tio.h $TO/.
cp -p $DIRM/ugly.h $TO/.
cp -p $DIRM/version.h $TO/.
