OpenCores
URL https://opencores.org/ocsvn/usb_fpga_1_11/usb_fpga_1_11/trunk

Subversion Repositories usb_fpga_1_11

[/] [usb_fpga_1_11/] [trunk/] [makecopyright] - Blame information for rev 2

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 ZTEX
#!/bin/sh
2
#
3
# makecopyright - put a copyright info into source files
4
# Copyright (C) 2009-2010 ZTEX e.K., http://www.ztex.de
5
#
6
 
7
# writes the copyright info to stdout
8
# $1    short description
9
# $2    begin of comment
10
# $3    end of comment
11
msg () {
12
echo "$2
13
   $1
14
   Copyright (C) 2009-2010 ZTEX e.K.
15
   http://www.ztex.de
16
 
17
   This program is free software; you can redistribute it and/or modify
18
   it under the terms of the GNU General Public License version 3 as
19
   published by the Free Software Foundation.
20
 
21
   This program is distributed in the hope that it will be useful, but
22
   WITHOUT ANY WARRANTY; without even the implied warranty of
23
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
24
   General Public License for more details.
25
 
26
   You should have received a copy of the GNU General Public License
27
   along with this program; if not, see http://www.gnu.org/licenses/.
28
$3"
29
}
30
 
31
readonly=no
32
 
33
# copyright info for single file
34
# $1    file
35
# $2    short description
36
# $3    begin of comment
37
# $4    end of comment
38
singlefile () {
39
#    if [ ! -f "$1" -o -f "$1.tmp" ]; then
40
    if [ ! -f "$1" ]; then
41
        return
42
    fi
43
    echo "$1"
44
    if [ "$readonly" = "no" ]; then
45
        mv "$1" "$1.tmp"
46
        (
47
            msg "$2" "$3" "$4"
48
            echo "@@@define[$3][$4
49
][]" | bmp -mm "@@@" - "$1.tmp"
50
        ) > "$1"
51
        rm -f "$1.tmp"
52
    fi
53
    echo "$1" >> files.tmp
54
}
55
 
56
 
57
# copyright info for single directory
58
# $1    dir
59
# $2    description
60
singledir () {
61
    if [ ! -d $1 ]; then
62
        echo "Directory not found: $1"
63
    fi
64
    for i in $1/*.pas $1/*.inc; do
65
        singlefile "$i" "$2" "{*!" "!*}"
66
    done
67
    for i in $1/*.c $1/*.h $1/*.java; do
68
        singlefile "$i" "$2" "/*!" "!*/"
69
    done
70
}
71
 
72
rm -f files.tmp
73
 
74
singledir bmp/src "bmp -- babel macro processor"
75
singledir examples/all/ucecho "ucecho -- uppercase conversion example for all EZ-USB devices"
76
singledir examples/all/ucecho/c "UCEcho -- C host software for ucecho examples"
77
singledir examples/usb-1.0/flashbench "flashbench -- Flash memory benchmark for ZTEX USB Module 1.0"
78
singledir examples/usb-1.0/flashdemo "flashdemo -- demo for Flash memory access from firmware and host software for ZTEX USB Module 1.0"
79
singledir examples/usb-fpga-1.2/flashbench "flashbench -- Flash memory benchmark for ZTEX USB FPGA Module 1.2"
80
singledir examples/usb-fpga-1.2/flashdemo "flashdemo -- demo for Flash memory access from firmware and host software for ZTEX USB FPGA Module 1.2"
81
singledir examples/usb-fpga-1.2/intraffic "intraffic -- example showing how the EZ-USB FIFO interface is used on ZTEX USB FPGA Module 1.2"
82
singledir examples/usb-fpga-1.2/standalone "standalone -- standalone firmware that supports FPGA configuration from FLASH and firmware loading from EEPROM for ZTEX USB FPGA Module 1.2"
83
singledir examples/usb-fpga-1.2/ucecho "ucecho -- uppercase conversion example for ZTEX USB FPGA Module 1.2"
84
singledir examples/usb-fpga-1.11/flashbench "flashbench -- Flash memory benchmark for ZTEX USB FPGA Module 1.11"
85
singledir examples/usb-fpga-1.11/flashdemo "flashdemo -- demo for Flash memory access from firmware and host software for ZTEX USB FPGA Module 1.11"
86
singledir examples/usb-fpga-1.11/intraffic "intraffic -- example showing how the EZ-USB FIFO interface is used on ZTEX USB FPGA Module 1.11"
87
singledir examples/usb-fpga-1.11/memtest "memtest -- DDR SDRAM FIFO for testing memory on ZTEX USB FPGA Module 1.11"
88
singledir examples/usb-fpga-1.11/standalone "standalone -- standalone firmware that supports FPGA configuration from FLASH and firmware loading from EEPROM for ZTEX USB FPGA Module 1.11"
89
singledir examples/usb-fpga-1.11/ucecho "ucecho -- uppercase conversion example for ZTEX USB FPGA Module 1.11"
90
singledir include "ZTEX Firmware Kit for EZ-USB Microcontrollers"
91
singledir java "Firmware / Bitstream loader for the ZTEX Firmware Kit"
92
singledir java/ztex "Java Driver API for the ZTEX Firmware Kit"
93
 
94
files=`cat files.tmp`
95
wc $files
96
rm -f files.tmp

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.