]> git.ozlabs.org Git - ccan/commitdiff
nfs: add licenses into generated files.
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 1 Apr 2013 03:22:35 +0000 (13:52 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 1 Apr 2013 03:22:35 +0000 (13:52 +1030)
Otherwise ccanlint complains about missing license comments.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/nfs/Makefile
ccan/nfs/libnfs-raw-mount.c
ccan/nfs/libnfs-raw-nfs.c
ccan/nfs/libnfs-raw-nfsacl.c
ccan/nfs/libnfs-raw-portmap.c
ccan/nfs/rpc/mount.h
ccan/nfs/rpc/nfs.h
ccan/nfs/rpc/nfsacl.h
ccan/nfs/rpc/portmap.h

index 8767e80fc7010c932633a675bbc312273c4d724c..76b9b9b929c148b7d343cf382ef533c8b61cd57e 100644 (file)
@@ -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 $@
index eccae5cdbac7589b096afd83fb788fabbfba8acb..d84428e6b40126bc87993520e93548b9918b96d1 100644 (file)
@@ -1,3 +1,4 @@
+/* Licensed under GPLv3+ - see LICENSE file for details */
 /*
  * Please do not edit this file.
  * It was generated using rpcgen.
index 9a53ae5d3bd0fdd4bdb1f6be0b5b914959e24a8f..51332c5c33ab49b17e1cd5f14236a8eac3095df9 100644 (file)
@@ -1,3 +1,4 @@
+/* Licensed under GPLv3+ - see LICENSE file for details */
 /*
  * Please do not edit this file.
  * It was generated using rpcgen.
index 33c603e7345e2c93f924312c7e360765ef7e90ad..124975a0e3860982d9cb0ff22d135c93d0d98466 100644 (file)
@@ -1,3 +1,4 @@
+/* Licensed under GPLv3+ - see LICENSE file for details */
 /*
  * Please do not edit this file.
  * It was generated using rpcgen.
index a53bc2f44877a67bc87fa0ec9e5f0eecb320468a..40a31282632d7349f543a86b7053e1cf0d717f7a 100644 (file)
@@ -1,3 +1,4 @@
+/* Licensed under GPLv3+ - see LICENSE file for details */
 /*
  * Please do not edit this file.
  * It was generated using rpcgen.
index ddeb6c968b9b2f435689eaf7d94fa742ba2c4c57..94c32ebbaec466e885a8ac6cf1e606ee9600f617 100644 (file)
@@ -1,3 +1,4 @@
+/* Licensed under GPLv3+ - see LICENSE file for details */
 /*
  * Please do not edit this file.
  * It was generated using rpcgen.
index 9a5be6b66379b8aa4033846a0bd48d8f335f15cb..7f6dc66613781094e333dfa374b0997e40b837da 100644 (file)
@@ -1,3 +1,4 @@
+/* Licensed under GPLv3+ - see LICENSE file for details */
 /*
  * Please do not edit this file.
  * It was generated using rpcgen.
index 2b7d73cea2ba38b9abd227e1d1944ec5b3cc8b31..b995592ceb8d4585ba30410708fae42099b0b8c4 100644 (file)
@@ -1,3 +1,4 @@
+/* Licensed under GPLv3+ - see LICENSE file for details */
 /*
  * Please do not edit this file.
  * It was generated using rpcgen.
index 7623d286883fbcf3e73777d42b6ac086757407c5..0cd7091e8b71f7d6d3499704f89e7fdaa47180ad 100644 (file)
@@ -1,3 +1,4 @@
+/* Licensed under GPLv3+ - see LICENSE file for details */
 /*
  * Please do not edit this file.
  * It was generated using rpcgen.