#
#     safe link install
#
/^var target / {
   target = $3
}

/^var srcdir / {
   srcdir = $3
}

/^var cmddir / {
   cmddir = $3
}

/^var linktarget / {
   linktarget = $3
}

/^systemid / {
   next
}

# Directories are listed in heirarchical order in the configuration files.

/^dir / {
   destlink = linktarget "/" $2
}

/^source / {
   source = srcdir "/" $2
}

/^file /
{
   next
}

/^dir /
{
}
