June 2019
Intermediate to advanced
328 pages
7h 27m
English
These exercises will help you build on what you learned in this chapter. They’ll help you improve your scripts, too.
Add a rule to your Makefile that uses scp or rsync to transfer the files to your web server.
Modify your website creation script to create a default CSS file with some basic styles.
Modify your website creation script to accept a value for the site’s name and inject it into the <title> tag of the template.
Use the date command to embed a copyright date in the footer of the site’s template.
Combine the Makefile with the website creation script so that each new site has a templates and pages directory, as well as the Makefile.
In your setup script, add code that looks for .bash_profile, backs it up, and replaces it with ...