Skip to content

Commit

Permalink
autotools
Browse files Browse the repository at this point in the history
  • Loading branch information
codekitchen committed Nov 23, 2019
1 parent 91e181b commit a5b3473
Show file tree
Hide file tree
Showing 9 changed files with 104 additions and 2 deletions.
21 changes: 21 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,23 @@
pipeline.dSYM
pipeline
*.o

# Autotools
.dirstamp
.deps/
*.log
stamp-h1
autom4te.cache
INSTALL
Makefile
configure
aclocal.m4
Makefile.in
compile
install-sh
missing
depcomp
config.h
config.h.in
config.status
Makefile
24 changes: 24 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"files.exclude": {
"**/pipeline.dSYM": true,
"**/pipeline": true,
"**/*.o": true,
"**/.dirstamp": true,
"**/.deps/": true,
"**/*.log": true,
"**/stamp-h1": true,
"**/autom4te.cache": true,
"**/INSTALL": true,
"**/Makefile": true,
"**/configure": true,
"**/aclocal.m4": true,
"**/Makefile.in": true,
"**/compile": true,
"**/install-sh": true,
"**/missing": true,
"**/depcomp": true,
"**/config.h": true,
"**/config.h.in": true,
"**/config.status": true
}
}
2 changes: 2 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Created By:
Brian Palmer <[email protected]>
20 changes: 20 additions & 0 deletions COPYING
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Copyright 2019 Brian Palmer

MIT license:

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2 changes: 0 additions & 2 deletions Makefile

This file was deleted.

3 changes: 3 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
bin_PROGRAMS = pipeline
pipeline_SOURCES = src/main.c
dist_doc_DATA = README.md
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,17 @@

Utility to make building up a pipeline of shell commands easier, especially when
doing data exploration.

## installation

```
autoreconf -fi # if building from git
./configure
make
```

After make finishes, you'll be able to use `./pipeline`. You can also install it using:

```
sudo make install
```
19 changes: 19 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
m4_define([p_version],
m4_esyscmd_s([echo `git rev-parse --abbrev-ref HEAD`-`git describe --always --dirty`])))

AC_INIT([pipeline], [p_version], [https://github.com/codekitchen/pipeline/issues], [pipeline], [https://github.com/codekitchen/pipeline])
AM_INIT_AUTOMAKE([-Wall -Werror subdir-objects foreign])
AC_PROG_CC
AC_SEARCH_LIBS(readline, readline)
AC_SEARCH_LIBS(setupterm, ncurses)
AC_CONFIG_HEADERS([config.h])
AC_CHECK_HEADERS([stdlib.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T
AC_TYPE_SSIZE_T
# Checks for library functions.
AC_FUNC_FORK
AC_CONFIG_FILES([
Makefile
])
AC_OUTPUT
1 change: 1 addition & 0 deletions main.c → src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include <stdlib.h>
#include <term.h>
#include <unistd.h>
#include "config.h"

#define PROGRAM_NAME "pipeline"
char *program_name = PROGRAM_NAME;
Expand Down

0 comments on commit a5b3473

Please sign in to comment.