From 238fce098442b5fe14c1e88b6245729ebae69f65 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 1 Apr 2013 13:52:35 +1030 Subject: [PATCH] nfs: add licenses into generated files. Otherwise ccanlint complains about missing license comments. Signed-off-by: Rusty Russell --- ccan/nfs/Makefile | 18 ++++++++++-------- ccan/nfs/libnfs-raw-mount.c | 1 + ccan/nfs/libnfs-raw-nfs.c | 1 + ccan/nfs/libnfs-raw-nfsacl.c | 1 + ccan/nfs/libnfs-raw-portmap.c | 1 + ccan/nfs/rpc/mount.h | 1 + ccan/nfs/rpc/nfs.h | 1 + ccan/nfs/rpc/nfsacl.h | 1 + ccan/nfs/rpc/portmap.h | 1 + 9 files changed, 18 insertions(+), 8 deletions(-) diff --git a/ccan/nfs/Makefile b/ccan/nfs/Makefile index 8767e80f..76b9b9b9 100644 --- a/ccan/nfs/Makefile +++ b/ccan/nfs/Makefile @@ -4,6 +4,8 @@ LIBS= LIBNFS_OBJ = libnfs-raw-mount.o libnfs-raw-portmap.o libnfs-raw-nfs.o libnfs-raw-nfsacl.o mount.o nfs.o nfsacl.o portmap.o pdu.o init.o socket.o libnfs.o libnfs-sync.o +LICENSE_LINE = echo '/* Licensed under GPLv3+ - see LICENSE file for details */' > $@ + all: tools/nfsclient-raw tools/nfsclient-async tools/nfsclient-sync tools/nfsclient-async: tools/nfsclient-async.c libnfs.a @@ -22,11 +24,11 @@ libnfs.a: $(LIBNFS_OBJ) rpc/mount.h: rpc/mount.x @echo Generating $@ - rpcgen -h rpc/mount.x > $@ + $(LICENSE_LINE) && rpcgen -h rpc/mount.x >> $@ libnfs-raw-mount.c: rpc/mount.x @echo Generating $@ - rpcgen -c rpc/mount.x > libnfs-raw-mount.c + $(LICENSE_LINE) && rpcgen -c rpc/mount.x >> $@ libnfs-raw-mount.o: libnfs-raw-mount.c rpc/mount.h @echo Compiling $@ @@ -34,11 +36,11 @@ libnfs-raw-mount.o: libnfs-raw-mount.c rpc/mount.h rpc/nfs.h: rpc/nfs.x @echo Generating $@ - rpcgen -h rpc/nfs.x > $@ + $(LICENSE_LINE) && rpcgen -h rpc/nfs.x >> $@ libnfs-raw-nfs.c: rpc/nfs.x @echo Generating $@ - rpcgen -c rpc/nfs.x > $@ + $(LICENSE_LINE) && rpcgen -c rpc/nfs.x >> $@ libnfs-raw-nfs.o: libnfs-raw-nfs.c rpc/nfs.h @echo Compiling $@ @@ -46,11 +48,11 @@ libnfs-raw-nfs.o: libnfs-raw-nfs.c rpc/nfs.h rpc/nfsacl.h: rpc/nfsacl.x @echo Generating $@ - rpcgen -h rpc/nfsacl.x > $@ + $(LICENSE_LINE) && rpcgen -h rpc/nfsacl.x >> $@ libnfs-raw-nfsacl.c: rpc/nfsacl.x @echo Generating $@ - rpcgen -c rpc/nfsacl.x > $@ + $(LICENSE_LINE) && rpcgen -c rpc/nfsacl.x >> $@ libnfs-raw-nfsacl.o: libnfs-raw-nfsacl.c rpc/nfsacl.h @echo Compiling $@ @@ -58,11 +60,11 @@ libnfs-raw-nfsacl.o: libnfs-raw-nfsacl.c rpc/nfsacl.h rpc/portmap.h: rpc/portmap.x @echo Generating $@ - rpcgen -h rpc/portmap.x > $@ + $(LICENSE_LINE) && rpcgen -h rpc/portmap.x >> $@ libnfs-raw-portmap.c: rpc/portmap.x @echo Generating $@ - rpcgen -c rpc/portmap.x > $@ + $(LICENSE_LINE) && rpcgen -c rpc/portmap.x >> $@ libnfs-raw-portmap.o: libnfs-raw-portmap.c rpc/portmap.h @echo Compiling $@ diff --git a/ccan/nfs/libnfs-raw-mount.c b/ccan/nfs/libnfs-raw-mount.c index eccae5cd..d84428e6 100644 --- a/ccan/nfs/libnfs-raw-mount.c +++ b/ccan/nfs/libnfs-raw-mount.c @@ -1,3 +1,4 @@ +/* Licensed under GPLv3+ - see LICENSE file for details */ /* * Please do not edit this file. * It was generated using rpcgen. diff --git a/ccan/nfs/libnfs-raw-nfs.c b/ccan/nfs/libnfs-raw-nfs.c index 9a53ae5d..51332c5c 100644 --- a/ccan/nfs/libnfs-raw-nfs.c +++ b/ccan/nfs/libnfs-raw-nfs.c @@ -1,3 +1,4 @@ +/* Licensed under GPLv3+ - see LICENSE file for details */ /* * Please do not edit this file. * It was generated using rpcgen. diff --git a/ccan/nfs/libnfs-raw-nfsacl.c b/ccan/nfs/libnfs-raw-nfsacl.c index 33c603e7..124975a0 100644 --- a/ccan/nfs/libnfs-raw-nfsacl.c +++ b/ccan/nfs/libnfs-raw-nfsacl.c @@ -1,3 +1,4 @@ +/* Licensed under GPLv3+ - see LICENSE file for details */ /* * Please do not edit this file. * It was generated using rpcgen. diff --git a/ccan/nfs/libnfs-raw-portmap.c b/ccan/nfs/libnfs-raw-portmap.c index a53bc2f4..40a31282 100644 --- a/ccan/nfs/libnfs-raw-portmap.c +++ b/ccan/nfs/libnfs-raw-portmap.c @@ -1,3 +1,4 @@ +/* Licensed under GPLv3+ - see LICENSE file for details */ /* * Please do not edit this file. * It was generated using rpcgen. diff --git a/ccan/nfs/rpc/mount.h b/ccan/nfs/rpc/mount.h index ddeb6c96..94c32ebb 100644 --- a/ccan/nfs/rpc/mount.h +++ b/ccan/nfs/rpc/mount.h @@ -1,3 +1,4 @@ +/* Licensed under GPLv3+ - see LICENSE file for details */ /* * Please do not edit this file. * It was generated using rpcgen. diff --git a/ccan/nfs/rpc/nfs.h b/ccan/nfs/rpc/nfs.h index 9a5be6b6..7f6dc666 100644 --- a/ccan/nfs/rpc/nfs.h +++ b/ccan/nfs/rpc/nfs.h @@ -1,3 +1,4 @@ +/* Licensed under GPLv3+ - see LICENSE file for details */ /* * Please do not edit this file. * It was generated using rpcgen. diff --git a/ccan/nfs/rpc/nfsacl.h b/ccan/nfs/rpc/nfsacl.h index 2b7d73ce..b995592c 100644 --- a/ccan/nfs/rpc/nfsacl.h +++ b/ccan/nfs/rpc/nfsacl.h @@ -1,3 +1,4 @@ +/* Licensed under GPLv3+ - see LICENSE file for details */ /* * Please do not edit this file. * It was generated using rpcgen. diff --git a/ccan/nfs/rpc/portmap.h b/ccan/nfs/rpc/portmap.h index 7623d286..0cd7091e 100644 --- a/ccan/nfs/rpc/portmap.h +++ b/ccan/nfs/rpc/portmap.h @@ -1,3 +1,4 @@ +/* Licensed under GPLv3+ - see LICENSE file for details */ /* * Please do not edit this file. * It was generated using rpcgen. -- 2.39.2