Skip to content

Commit

Permalink
add header comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dongyx committed May 6, 2022
1 parent 8d5dcc1 commit 5749e94
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
7 changes: 7 additions & 0 deletions shsub.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
#!/bin/sh
#
# the user interface of shsub <https:/github.com/dongyx/shsub>
# piping the output of tc to shell
#
# tokens surrounded by `__`, like `__version__`
# is intended to be substituted at building time
# using a macro processor like m4 .

set -e
tc="$(dirname "$0")/tc"
Expand Down
9 changes: 9 additions & 0 deletions tc.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/* tc - compile the shell template to a shell script
*
* the shell template is read from stdin
* the shell script is printed to stdout
*
* tc is a component of the shsub project
* <https://github.com/dongyx/shsub>
*/

#include <stdlib.h>
#include <string.h>
#include <stdio.h>
Expand Down

0 comments on commit 5749e94

Please sign in to comment.