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 6

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

Line No. Rev Author Line
1 6 ZTEX
#!/bin/bash
2 2 ZTEX
#
3
# makecopyright - put a copyright info into source files
4 5 ZTEX
# Copyright (C) 2009-2011 ZTEX GmbH., http://www.ztex.de
5 2 ZTEX
#
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 5 ZTEX
   Copyright (C) 2009-2011 ZTEX GmbH.
15 2 ZTEX
   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 5 ZTEX
# $1    dir(s)
59 2 ZTEX
# $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 5 ZTEX
singledir include "ZTEX Firmware Kit for EZ-USB FX2 Microcontrollers"
76
singledir java "Firmware / Bitstream loader for the ZTEX EZ-USB FX2 SDK"
77
singledir java/ztex "Java host software API of ZTEX EZ-USB FX2 SDK"
78
 
79
singledir examples/all/debug "debug -- debug helper example"
80 2 ZTEX
singledir examples/all/ucecho "ucecho -- uppercase conversion example for all EZ-USB devices"
81
singledir examples/all/ucecho/c "UCEcho -- C host software for ucecho examples"
82 5 ZTEX
 
83 2 ZTEX
singledir examples/usb-1.0/flashbench "flashbench -- Flash memory benchmark for ZTEX USB Module 1.0"
84
singledir examples/usb-1.0/flashdemo "flashdemo -- demo for Flash memory access from firmware and host software for ZTEX USB Module 1.0"
85
 
86 5 ZTEX
singledir examples/usb-fpga-1.2/flashbench "flashbench -- Flash memory benchmark for ZTEX USB-FPGA Module 1.2"
87
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"
88
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"
89
singledir examples/usb-fpga-1.2/lightshow "lightshow -- lightshow on ZTEX USB-FPGA Module 1.2 plus Experimental Board 1.10"
90
singledir examples/usb-fpga-1.2/standalone "standalone -- standalone firmware that supports FPGA configuration from Flash firmware loading from EEPROM for ZTEX USB-FPGA Module 1.2"
91
singledir examples/usb-fpga-1.2/ucecho "ucecho -- uppercase conversion example for ZTEX USB-FPGA Module 1.2"
92
 
93
singledir examples/usb-fpga-1.11/flashbench "flashbench -- Flash memory benchmark for ZTEX USB-FPGA Module 1.11"
94
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"
95
singledir examples/usb-fpga-1.11/nvmtest "nvmtest -- ATxmega non volatile memory test on ZTEX USB-FPGA Module 1.11 plus Experimental Board 1.10"
96
singledir examples/usb-fpga-1.11/standalone "standalone -- standalone firmware that supports FPGA configuration from Flash firmware loading from EEPROM for ZTEX USB-FPGA Module 1.11"
97
singledir examples/usb-fpga-1.11/1.11a/intraffic "intraffic -- example showing how the EZ-USB FIFO interface is used on ZTEX USB-FPGA Module 1.11a"
98
singledir examples/usb-fpga-1.11/1.11a/lightshow "lightshow -- lightshow on ZTEX USB-FPGA Module 1.11a plus Experimental Board 1.10"
99
singledir examples/usb-fpga-1.11/1.11a/memtest "memtest -- DDR SDRAM FIFO for testing memory on ZTEX USB-FPGA Module 1.11a"
100
singledir examples/usb-fpga-1.11/1.11a/ucecho "ucecho -- uppercase conversion example for ZTEX USB-FPGA Module 1.11a"
101
singledir examples/usb-fpga-1.11/1.11b/intraffic "intraffic -- example showing how the EZ-USB FIFO interface is used on ZTEX USB-FPGA Module 1.11b"
102
singledir examples/usb-fpga-1.11/1.11b/lightshow "lightshow -- lightshow on ZTEX USB-FPGA Module 1.11b plus Experimental Board 1.10"
103
singledir examples/usb-fpga-1.11/1.11b/memtest "memtest -- DDR SDRAM FIFO for testing memory on ZTEX USB-FPGA Module 1.11b"
104
singledir examples/usb-fpga-1.11/1.11b/ucecho "ucecho -- uppercase conversion example for ZTEX USB-FPGA Module 1.11b"
105
singledir examples/usb-fpga-1.11/1.11c/intraffic "intraffic -- example showing how the EZ-USB FIFO interface is used on ZTEX USB-FPGA Module 1.11c"
106
singledir examples/usb-fpga-1.11/1.11c/lightshow "lightshow -- lightshow on ZTEX USB-FPGA Module 1.11c plus Experimental Board 1.10"
107
singledir examples/usb-fpga-1.11/1.11c/memtest "memtest -- DDR SDRAM FIFO for testing memory on ZTEX USB-FPGA Module 1.11c"
108
singledir examples/usb-fpga-1.11/1.11c/ucecho "ucecho -- uppercase conversion example for ZTEX USB-FPGA Module 1.11c"
109
 
110
singledir examples/usb-fpga-1.15/flashbench "flashbench -- Flash memory benchmark for ZTEX USB-FPGA Module 1.15"
111
singledir examples/usb-fpga-1.15/flashdemo "flashdemo -- demo for Flash memory access from firmware and host software for ZTEX USB-FPGA Module 1.15"
112
singledir examples/usb-fpga-1.15/nvmtest "nvmtest -- ATxmega non volatile memory test on ZTEX USB-FPGA Module 1.15 plus Experimental Board 1.10"
113
singledir examples/usb-fpga-1.15/standalone "standalone -- standalone firmware that supports FPGA configuration from Flash firmware loading from EEPROM for ZTEX USB-FPGA Module 1.15"
114
singledir examples/usb-fpga-1.15/1.15b/intraffic "intraffic -- example showing how the EZ-USB FIFO interface is used on ZTEX USB-FPGA Module 1.15b"
115
singledir examples/usb-fpga-1.15/1.15b/lightshow "lightshow -- lightshow on ZTEX USB-FPGA Module 1.15b plus Experimental Board 1.10"
116
singledir examples/usb-fpga-1.15/1.15b/memtest "memtest -- DDR2 SDRAM FIFO for testing memory on ZTEX USB-FPGA Module 1.15b"
117
singledir examples/usb-fpga-1.15/1.15b/mmio "mmio -- Memory mapped I/O example for ZTEX USB-FPGA Module 1.15b"
118
singledir examples/usb-fpga-1.15/1.15b/ucecho "ucecho -- uppercase conversion example for ZTEX USB-FPGA Module 1.15b"
119
singledir examples/usb-fpga-1.15/1.15d/intraffic "intraffic -- example showing how the EZ-USB FIFO interface is used on ZTEX USB-FPGA Module 1.15b"
120
singledir examples/usb-fpga-1.15/1.15d/lightshow "lightshow -- lightshow on ZTEX USB-FPGA Module 1.15b plus Experimental Board 1.10"
121
singledir examples/usb-fpga-1.15/1.15d/memtest "memtest -- DDR2 SDRAM FIFO for testing memory on ZTEX USB-FPGA Module 1.15b"
122
singledir examples/usb-fpga-1.15/1.15d/mmio "mmio -- Memory mapped I/O example for ZTEX USB-FPGA Module 1.15b"
123
singledir examples/usb-fpga-1.15/1.15d/ucecho "ucecho -- uppercase conversion example for ZTEX USB-FPGA Module 1.15b"
124
 
125
singledir examples/usb-xmega-1.0/flashbench "flashbench -- Flash memory benchmark for ZTEX USB-XMEGA Module 1.0"
126
singledir examples/usb-xmega-1.0/flashdemo "flashdemo -- demo for Flash memory access from firmware and host software for ZTEX USB-XMEGA Module 1.0"
127
singledir examples/usb-xmega-1.0/nvmtest "nvmtest -- ATxmega non volatile memory test on ZTEX USB-XMEGA Module 1.0"
128
singledir examples/usb-xmega-1.0/ucecho "ucecho -- uppercase conversion example for ZTEX USB-XMEGA Module 1.0"
129
 
130
#files=`cat files.tmp`
131
#wc $files
132
#rm -f files.tmp

powered by: WebSVN 2.1.0

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