URL
https://opencores.org/ocsvn/usb_fpga_1_2/usb_fpga_1_2/trunk
Subversion Repositories usb_fpga_1_2
[/] [usb_fpga_1_2/] [trunk/] [makecopyright] - Rev 2
Go to most recent revision | Compare with Previous | Blame | View Log
#!/bin/sh## makecopyright - put a copyright info into source files# Copyright (C) 2008-2009 ZTEX e.K., http://www.ztex.de## writes the copyright info to stdout# $1 short description# $2 begin of comment# $3 end of commentmsg () {echo "$2$1Copyright (C) 2008-2009 ZTEX e.K.http://www.ztex.deThis program is free software; you can redistribute it and/or modifyit under the terms of the GNU General Public License version 3 aspublished by the Free Software Foundation.This program is distributed in the hope that it will be useful, butWITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNUGeneral Public License for more details.You should have received a copy of the GNU General Public Licensealong with this program; if not, see http://www.gnu.org/licenses/.$3"}readonly=no# copyright info for single file# $1 file# $2 short description# $3 begin of comment# $4 end of commentsinglefile () {# if [ ! -f "$1" -o -f "$1.tmp" ]; thenif [ ! -f "$1" ]; thenreturnfiecho "$1"if [ "$readonly" = "no" ]; thenmv "$1" "$1.tmp"(msg "$2" "$3" "$4"echo "@@@define[$3][$4][]" | bmp -mm "@@@" - "$1.tmp") > "$1"rm -f "$1.tmp"fiecho "$1" >> files.tmp}# copyright info for single directory# $1 dir# $2 descriptionsingledir () {for i in $1/*.pas $1/*.inc; dosinglefile "$i" "$2" "{*!" "!*}"donefor i in $1/*.c $1/*.h $1/*.java; dosinglefile "$i" "$2" "/*!" "!*/"done}rm -f files.tmpsingledir bmp/src "bmp -- babel macro processor"singledir examples/usb-fpga-1.2/ucecho "ucecho -- example for ZTEX USB FPGA Module 1.2"singledir include "ZTEX Firmware Kit for EZ-USB Microcontrollers"#singledir java "Java utilities for the ZTEX Firmware Kit / Driver API"singledir java "Firmware / Bitstream loader for the ZTEX Firmware Kit"singledir java/ztex "Java Driver API for the ZTEX Firmware Kit"files=`cat files.tmp`wc $filesrm -f files.tmp
Go to most recent revision | Compare with Previous | Blame | View Log
