changed cligen repo from olofhagsand/cligen to clicon/cligen

This commit is contained in:
Olof hagsand 2020-06-21 15:57:43 +02:00
parent 3af184c655
commit 1597bd303c
12 changed files with 17 additions and 16 deletions

5
configure vendored
View file

@ -4613,7 +4613,7 @@ if test "x$ac_cv_header_cligen_cligen_h" = xyes; then :
_ACEOF
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
done
@ -4663,7 +4663,7 @@ _ACEOF
LIBS="-lcligen $LIBS"
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
@ -5068,6 +5068,7 @@ fi
# Common actions for all restconf packages
if test "x${with_restconf}" != "x"; then
# This is for changing web user default www-data
# Should this be a runtime option?
# Check whether --with-wwwuser was given.
if test "${with_wwwuser+set}" = set; then :

View file

@ -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])
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:
# --without-restconf No restconf support

View file

@ -7,7 +7,7 @@
## 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:
* A plugin framework for both textual CLI specifications(.cli) and object files (.so)

View file

@ -54,7 +54,7 @@ configure.ac --.
Makefile.in ---' `-> Makefile ---'
```
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:
$ wget -O config.guess 'https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD'

View file

@ -65,7 +65,7 @@ Clixon also supports Yang extensions, see main example.
## Which programming language is used?
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?
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".
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?
Similar to a commit function, but instead write the transaction_validate() function.

View file

@ -14,7 +14,7 @@ sudo apt-get install flex bison fcgi-dev curl-dev
Install and build CLIgen
```
git clone https://github.com/olofhagsand/cligen.git
git clone https://github.com/clicon/cligen.git
cd cligen;
configure;
make;

View file

@ -58,9 +58,9 @@ See [LICENSE.md](LICENSE.md) for the license.
## Dependencies
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
```
- Yacc/bison

View file

@ -43,7 +43,7 @@ RUN mkdir /clixon/build
WORKDIR /clixon
# Clone cligen
RUN git clone https://github.com/olofhagsand/cligen.git
RUN git clone https://github.com/clicon/cligen.git
# Build cligen
WORKDIR /clixon/cligen

View file

@ -44,7 +44,7 @@ RUN mkdir /clixon/build
WORKDIR /clixon
# Clone cligen
RUN git clone https://github.com/olofhagsand/cligen.git
RUN git clone https://github.com/clicon/cligen.git
# Build cligen
WORKDIR /clixon/cligen

View file

@ -36,7 +36,7 @@ ssh -t $h "(cd /tmp; chmod 750 $SCRIPTS)"
# pull git changes and build cligen
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;./configure)"
ssh -t $h "(cd src/cligen; /tmp/cligen-mk.sh)"

View file

@ -1,5 +1,5 @@
#!/bin/sh
# Travis pre-config script.
# 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)

View file

@ -155,7 +155,7 @@ fi
# cligen
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
git pull