changed cligen repo from olofhagsand/cligen to clicon/cligen
This commit is contained in:
parent
3af184c655
commit
1597bd303c
12 changed files with 17 additions and 16 deletions
5
configure
vendored
5
configure
vendored
|
|
@ -4613,7 +4613,7 @@ if test "x$ac_cv_header_cligen_cligen_h" = xyes; then :
|
||||||
_ACEOF
|
_ACEOF
|
||||||
|
|
||||||
else
|
else
|
||||||
as_fn_error $? "CLIgen missing. Try: git clone https://github.com/olofhagsand/cligen.git" "$LINENO" 5
|
as_fn_error $? "CLIgen missing. Try: git clone https://github.com/clicon/cligen.git" "$LINENO" 5
|
||||||
fi
|
fi
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
@ -4663,7 +4663,7 @@ _ACEOF
|
||||||
LIBS="-lcligen $LIBS"
|
LIBS="-lcligen $LIBS"
|
||||||
|
|
||||||
else
|
else
|
||||||
as_fn_error $? "CLIgen missing. Try: git clone https://github.com/olofhagsand/cligen.git" "$LINENO" 5
|
as_fn_error $? "CLIgen missing. Try: git clone https://github.com/clicon/cligen.git" "$LINENO" 5
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -5068,6 +5068,7 @@ fi
|
||||||
# Common actions for all restconf packages
|
# Common actions for all restconf packages
|
||||||
if test "x${with_restconf}" != "x"; then
|
if test "x${with_restconf}" != "x"; then
|
||||||
# This is for changing web user default www-data
|
# This is for changing web user default www-data
|
||||||
|
# Should this be a runtime option?
|
||||||
|
|
||||||
# Check whether --with-wwwuser was given.
|
# Check whether --with-wwwuser was given.
|
||||||
if test "${with_wwwuser+set}" = set; then :
|
if test "${with_wwwuser+set}" = set; then :
|
||||||
|
|
|
||||||
|
|
@ -185,9 +185,9 @@ if test "$ac_enable_publish" = "yes"; then
|
||||||
AC_DEFINE(CLIXON_PUBLISH_STREAMS, 1, [Enable publish of notification streams using SSE and curl])
|
AC_DEFINE(CLIXON_PUBLISH_STREAMS, 1, [Enable publish of notification streams using SSE and curl])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_CHECK_HEADERS(cligen/cligen.h,, AC_MSG_ERROR([CLIgen missing. Try: git clone https://github.com/olofhagsand/cligen.git]))
|
AC_CHECK_HEADERS(cligen/cligen.h,, AC_MSG_ERROR([CLIgen missing. Try: git clone https://github.com/clicon/cligen.git]))
|
||||||
|
|
||||||
AC_CHECK_LIB(cligen, cligen_init,, AC_MSG_ERROR([CLIgen missing. Try: git clone https://github.com/olofhagsand/cligen.git]))
|
AC_CHECK_LIB(cligen, cligen_init,, AC_MSG_ERROR([CLIgen missing. Try: git clone https://github.com/clicon/cligen.git]))
|
||||||
|
|
||||||
# This is for restconf. There are three options:
|
# This is for restconf. There are three options:
|
||||||
# --without-restconf No restconf support
|
# --without-restconf No restconf support
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
## CLIgen
|
## CLIgen
|
||||||
|
|
||||||
The Clixon CLI uses [CLIgen](http://github.com/olofhagsand/cligen) best described by the [CLIgen tutorial](https://github.com/olofhagsand/cligen/blob/master/cligen_tutorial.pdf). The [example](example) is also helpful.
|
The Clixon CLI uses [CLIgen](http://github.com/clicon/cligen) best described by the [CLIgen tutorial](https://github.com/clicon/cligen/blob/master/cligen_tutorial.pdf). The [example](example) is also helpful.
|
||||||
|
|
||||||
Clixon adds some features and structure to CLIgen which include:
|
Clixon adds some features and structure to CLIgen which include:
|
||||||
* A plugin framework for both textual CLI specifications(.cli) and object files (.so)
|
* A plugin framework for both textual CLI specifications(.cli) and object files (.so)
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ configure.ac --.
|
||||||
Makefile.in ---' `-> Makefile ---'
|
Makefile.in ---' `-> Makefile ---'
|
||||||
```
|
```
|
||||||
Note: remember to run autoheader sometimes (when?)
|
Note: remember to run autoheader sometimes (when?)
|
||||||
And when you do note (https://github.com/olofhagsand/cligen/issues/17) which states that cligen_custom.h should be in quote.
|
And when you do note (https://github.com/clicon/cligen/issues/17) which states that cligen_custom.h should be in quote.
|
||||||
|
|
||||||
Get config.sub and config.guess:
|
Get config.sub and config.guess:
|
||||||
$ wget -O config.guess 'https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD'
|
$ wget -O config.guess 'https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD'
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,7 @@ Clixon also supports Yang extensions, see main example.
|
||||||
|
|
||||||
## Which programming language is used?
|
## Which programming language is used?
|
||||||
Clixon is written in C. The plugins are written in C. The CLI
|
Clixon is written in C. The plugins are written in C. The CLI
|
||||||
specification uses [CLIgen](http://github.com/olofhagsand/cligen)
|
specification uses [CLIgen](http://github.com/clicon/cligen)
|
||||||
|
|
||||||
## How to best understand Clixon?
|
## How to best understand Clixon?
|
||||||
Run the Clixon main example, in the [example](../example) directory or [examples repo](https://github.com/clicon/clixon-examples), or [main documentation](https://clixon-docs.readthedocs.io)
|
Run the Clixon main example, in the [example](../example) directory or [examples repo](https://github.com/clicon/clixon-examples), or [main documentation](https://clixon-docs.readthedocs.io)
|
||||||
|
|
@ -507,7 +507,7 @@ More are found in the doxygen reference.
|
||||||
where 'cvv' contains the value of the variable 'var' and 'argv' contains the string "myarg".
|
where 'cvv' contains the value of the variable 'var' and 'argv' contains the string "myarg".
|
||||||
|
|
||||||
The 'cvv' datatype is a 'CLIgen variable vector'.
|
The 'cvv' datatype is a 'CLIgen variable vector'.
|
||||||
They are documented in [CLIgen tutorial](https://github.com/olofhagsand/cligen/blob/master/cligen_tutorial.pdf)
|
They are documented in [CLIgen tutorial](https://github.com/clicon/cligen/blob/master/cligen_tutorial.pdf)
|
||||||
|
|
||||||
## How do I write a validation function?
|
## How do I write a validation function?
|
||||||
Similar to a commit function, but instead write the transaction_validate() function.
|
Similar to a commit function, but instead write the transaction_validate() function.
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ sudo apt-get install flex bison fcgi-dev curl-dev
|
||||||
|
|
||||||
Install and build CLIgen
|
Install and build CLIgen
|
||||||
```
|
```
|
||||||
git clone https://github.com/olofhagsand/cligen.git
|
git clone https://github.com/clicon/cligen.git
|
||||||
cd cligen;
|
cd cligen;
|
||||||
configure;
|
configure;
|
||||||
make;
|
make;
|
||||||
|
|
|
||||||
|
|
@ -58,9 +58,9 @@ See [LICENSE.md](LICENSE.md) for the license.
|
||||||
## Dependencies
|
## Dependencies
|
||||||
|
|
||||||
Clixon depends on the following software packages, which need to exist on the target machine.
|
Clixon depends on the following software packages, which need to exist on the target machine.
|
||||||
- [CLIgen](http://github.com/olofhagsand/cligen) If you need to build and install CLIgen:
|
- [CLIgen](http://github.com/clicon/cligen) If you need to build and install CLIgen:
|
||||||
```
|
```
|
||||||
git clone https://github.com/olofhagsand/cligen.git
|
git clone https://github.com/clicon/cligen.git
|
||||||
cd cligen; configure; make; make install
|
cd cligen; configure; make; make install
|
||||||
```
|
```
|
||||||
- Yacc/bison
|
- Yacc/bison
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ RUN mkdir /clixon/build
|
||||||
WORKDIR /clixon
|
WORKDIR /clixon
|
||||||
|
|
||||||
# Clone cligen
|
# Clone cligen
|
||||||
RUN git clone https://github.com/olofhagsand/cligen.git
|
RUN git clone https://github.com/clicon/cligen.git
|
||||||
|
|
||||||
# Build cligen
|
# Build cligen
|
||||||
WORKDIR /clixon/cligen
|
WORKDIR /clixon/cligen
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ RUN mkdir /clixon/build
|
||||||
WORKDIR /clixon
|
WORKDIR /clixon
|
||||||
|
|
||||||
# Clone cligen
|
# Clone cligen
|
||||||
RUN git clone https://github.com/olofhagsand/cligen.git
|
RUN git clone https://github.com/clicon/cligen.git
|
||||||
|
|
||||||
# Build cligen
|
# Build cligen
|
||||||
WORKDIR /clixon/cligen
|
WORKDIR /clixon/cligen
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ ssh -t $h "(cd /tmp; chmod 750 $SCRIPTS)"
|
||||||
|
|
||||||
# pull git changes and build cligen
|
# pull git changes and build cligen
|
||||||
ssh -t $h "test -d src || mkdir src"
|
ssh -t $h "test -d src || mkdir src"
|
||||||
ssh -t $h "test -d src/cligen || (cd src;git clone https://github.com/olofhagsand/cligen.git)"
|
ssh -t $h "test -d src/cligen || (cd src;git clone https://github.com/clicon/cligen.git)"
|
||||||
ssh -t $h "(cd src/cligen;git pull)"
|
ssh -t $h "(cd src/cligen;git pull)"
|
||||||
ssh -t $h "(cd src/cligen;./configure)"
|
ssh -t $h "(cd src/cligen;./configure)"
|
||||||
ssh -t $h "(cd src/cligen; /tmp/cligen-mk.sh)"
|
ssh -t $h "(cd src/cligen; /tmp/cligen-mk.sh)"
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Travis pre-config script.
|
# Travis pre-config script.
|
||||||
# Clone and install CLIgen (needed for clixon configure and make)
|
# Clone and install CLIgen (needed for clixon configure and make)
|
||||||
git clone https://github.com/olofhagsand/cligen.git
|
git clone https://github.com/clicon/cligen.git
|
||||||
(cd cligen && ./configure && make && sudo make install)
|
(cd cligen && ./configure && make && sudo make install)
|
||||||
|
|
|
||||||
|
|
@ -155,7 +155,7 @@ fi
|
||||||
|
|
||||||
# cligen
|
# cligen
|
||||||
test -d src || mkdir src
|
test -d src || mkdir src
|
||||||
test -d src/cligen || (cd src;git clone https://github.com/olofhagsand/cligen.git)
|
test -d src/cligen || (cd src;git clone https://github.com/clicon/cligen.git)
|
||||||
cd src/cligen
|
cd src/cligen
|
||||||
git pull
|
git pull
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue