oneshot-make contains boilerplate code required to create the source directory of a oneshot service based on strings.
oneshot-make workingdir name upscript downscript dependencies
dependencies can only be one of "dependency1 dependency2 ..." | none.
workingdir/name
workingdir/name/type
and writes the line oneshot to it.
workingdir/name/up
and writes upscript to it.
workingdir/name/down
and writes downscript to it.
dependencies is not none:
workingdir/name/dependencies.d
is created.
"dependency1 dependency2 ..." in
dependencies separated by spaces,
a file
workingdir/name/dependencies.d/dependency
is created.