#!/bin/sh dir=$HOME/"Networking" notes="$dir"/Notes.html images="$dir"/images ds=../DistributedSystems np=$ds/NetworkProgramming spacer=spacer.html if [ ! -f "$spacer" ]; then echo Spacer file not found - exiting. exit 1 fi if [ ! -d "$dir" ]; then mkdir "$dir" fi if [ -f "$notes" ]; then echo Notes file "$notes" exists - exiting. exit 1 fi if [ ! -d "$images" ]; then mkdir "$images" fi cp -f images/* "$images" cp -f $ds/images/* "$images" cp -f $np/images/* "$images" touch "$notes" cat 00_Introduction.html >> "$notes" cat "$spacer" >> "$notes" cat $ds/01_ApplicationLayer.html >> "$notes" cat "$spacer" >> "$notes" cat $ds/05_EmailProtocols.html >> "$notes" cat "$spacer" >> "$notes" cat $ds/05_DNS.html >> "$notes" cat "$spacer" >> "$notes" cat 40_TransportLayer.html >> "$notes" cat "$spacer" >> "$notes" cat 41_InternetTransportLayer.html >> "$notes" cat "$spacer" >> "$notes" cat 43_TCP.html >> "$notes" cat "$spacer" >> "$notes" cat 45_UDP.html >> "$notes" cat "$spacer" >> "$notes" cat 47_TCP-IP-Ethernet_Example.html >> "$notes" cat "$spacer" >> "$notes" cat 30_NetworkLayer.html >> "$notes" cat "$spacer" >> "$notes" cat 33_Internetworking.html >> "$notes" cat "$spacer" >> "$notes" cat 34_Internet_NetworkLayer.html >> "$notes" cat "$spacer" >> "$notes" cat $np/00_Client-ServerModel.html >> "$notes" cat "$spacer" >> "$notes" cat $np/01_SocketsAPI.html >> "$notes" cat "$spacer" >> "$notes" cat $np/02_TCP_ClientDesign.html >> "$notes" cat "$spacer" >> "$notes" cat $np/04_ServerDesign.html >> "$notes"