#!/bin/csh -f
#
# Instructions and script to install sys5 "cflow"
#  (and sys5 lint, required by cflow).
#
# Created by Bruce Jerrick, OGI CS&E -- not part of the DYNIX distribution.

# For cflow, modify cflow.sh from DYNIX Utilities source (needs a #!/bin/sh
#  header), and install as /usr/5bin/cflow .

# For lint, extract usr/bin/lint from SVAE tape and move it into /usr/5bin .
# Note that a UCB /usr/bin/lint also exists; be careful to not let the
#  sys5 lint clobber it.

# Extract the CFLOW_LIB and LINT_LIB files from SVAE tape (names on the tape
#  have usr/lib/ prepended), then move them into /usr/5lib .

# Then run this script to set up symlinks (cflow and lint expect the lib files
#  to be in /usr/lib, but we would rather keep them separate in /usr/5lib).
# This script can be run from any cwd.


# lib files for sys5 cflow:
set CFLOW_LIB = ( \
    dag \
    flip \
    lpfx \
    nmf \
)

# lib files for sys5 lint:
set LINT_LIB = ( \
    lint1 \
    lint2 \
    llib-lc \
    llib-lc.ln \
    llib-lm \
    llib-lm.ln \
    llib-lmalloc \
    llib-lmalloc.ln \
    llib-port \
    llib-port.ln \
)

# Set up symlinks:
chdir /usr/lib
foreach i ( $CFLOW_LIB $LINT_LIB )
    ln -s ../5lib/$i .
end
