Skip to Content
Small, Sharp Software Tools
book

Small, Sharp Software Tools

by Brian P. Hogan
June 2019
Intermediate to advanced
328 pages
7h 27m
English
Pragmatic Bookshelf
Content preview from Small, Sharp Software Tools

Your Turn

These exercises will help you build on what you learned in this chapter. They’ll help you improve your scripts, too.

  1. Add a rule to your Makefile that uses scp or rsync to transfer the files to your web server.

  2. Modify your website creation script to create a default CSS file with some basic styles.

  3. Modify your website creation script to accept a value for the site’s name and inject it into the <title> tag of the template.

  4. Use the date command to embed a copyright date in the footer of the site’s template.

  5. Combine the Makefile with the website creation script so that each new site has a templates and pages directory, as well as the Makefile.

  6. In your setup script, add code that looks for .bash_profile, backs it up, and replaces it with ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

The VimL Primer

The VimL Primer

Benjamin Klein
What Employees Want Most in Uncertain Times

What Employees Want Most in Uncertain Times

Kristine W. Powers, Jessica B.B. Diaz

Publisher Resources

ISBN: 9781680507003Errata Page