Remove gen script
This commit is contained in:
parent
16a9175ae8
commit
780128f55f
2 changed files with 0 additions and 62 deletions
|
|
@ -93,7 +93,6 @@ Who is who in **bin** directory:
|
||||||
- `eman MODULE` shortcut for `erl -man MODULE` (displays the manual page for the Erlang module MODULE)
|
- `eman MODULE` shortcut for `erl -man MODULE` (displays the manual page for the Erlang module MODULE)
|
||||||
- `erun MODULE ARG1 ... ARGN` erlangish `go run`
|
- `erun MODULE ARG1 ... ARGN` erlangish `go run`
|
||||||
- `g+ WHAT` recursively grep current directory
|
- `g+ WHAT` recursively grep current directory
|
||||||
- `gen WHAT` generate some code for me (html boilerplate, perl/go snippets, etc)
|
|
||||||
- `git+ MESSAGE` git: commit and push to master
|
- `git+ MESSAGE` git: commit and push to master
|
||||||
- `h+` transform line to heading
|
- `h+` transform line to heading
|
||||||
- `hg+ MESSAGE` hg: commit and push to master
|
- `hg+ MESSAGE` hg: commit and push to master
|
||||||
|
|
|
||||||
61
bin/gen
61
bin/gen
|
|
@ -1,61 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
want="$1"
|
|
||||||
|
|
||||||
## HTML
|
|
||||||
## -----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
if [ $want == 'html' ] || [ $want == '!' ]; then
|
|
||||||
cat << 'HTML'
|
|
||||||
<!doctype html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<title>title</title>
|
|
||||||
<!-- <link rel="shortcut icon" href="/favicon.ico"> -->
|
|
||||||
<!-- <link rel="stylesheet" href="index.css"> -->
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<!-- <script src="index.js"></script> -->
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
HTML
|
|
||||||
fi
|
|
||||||
|
|
||||||
## PERL
|
|
||||||
## -----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
if [ $want == 'perl' ] || [ $want == 'pl' ]; then
|
|
||||||
cat << 'PERL'
|
|
||||||
#!/usr/bin/env perl
|
|
||||||
|
|
||||||
use strict;
|
|
||||||
use warnings;
|
|
||||||
use feature 'say';
|
|
||||||
use experimental 'signatures';
|
|
||||||
|
|
||||||
sub main () {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
main();
|
|
||||||
PERL
|
|
||||||
fi
|
|
||||||
|
|
||||||
## GO
|
|
||||||
## -----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
if [ $want == 'go' ]; then
|
|
||||||
cat << 'GO'
|
|
||||||
package main
|
|
||||||
|
|
||||||
import (
|
|
||||||
"fmt"
|
|
||||||
)
|
|
||||||
|
|
||||||
func main() {
|
|
||||||
|
|
||||||
}
|
|
||||||
GO
|
|
||||||
fi
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue