Create new projects from project skeletons.
This script is for you if you create nontrivial projects that can be derived from a common base.
$ skel new android Happy
This creates a new "Happy" project from the skeleton "android".
By default, skeletons live in ~/src/skel. If you want another location:
export SKELETONS=/path/to/skeletons
To refactor a skeleton after creation, put a file named skel.sh into the root of your skeleton directory. This file is run immediately after the new project has been set up.
You may generate a blank skel.sh by running
$ skel init
This template contains a refactor function to refactor in files as well as in file and directory names.
For example, if your skeleton contains the literal "AppName" and you want to replace it, say with the directory name of the new project, you may put
refactor 'AppName' "${PWD##*/}"
into skel.sh in the skeleton root directory.
For more info use:
$ skel help