#!/bin/sh fnlib=/usr/local/fnlib freetype=/usr/local/freetype for dir in lib include do cd $fnlib/$dir for file in * do echo ln -s $fnlib/$dir/$file /usr/local/$dir done cd $freetype/$dir for file in * do echo ln -s $freetype/$dir/$file /usr/local/$dir done done