mirror of
https://github.com/wfjm/w11.git
synced 2026-01-13 07:29:58 +00:00
re-organize .gitignores
This commit is contained in:
parent
238b6e4276
commit
cfd8802218
48
.gitignore
vendored
48
.gitignore
vendored
@ -1,42 +1,18 @@
|
||||
# backup files
|
||||
*.bak
|
||||
*~
|
||||
|
||||
# archives
|
||||
*.gz
|
||||
*.tar
|
||||
*.tgz
|
||||
|
||||
# make auto-dependency
|
||||
*.dep
|
||||
*.dep_*
|
||||
work-obj93.cf
|
||||
*.vcd
|
||||
*.ghw
|
||||
*.sav
|
||||
|
||||
# temporary and generated
|
||||
*.o
|
||||
*.tmp
|
||||
*.exe
|
||||
ise
|
||||
xflow.his
|
||||
*.ngc
|
||||
*.ncd
|
||||
*.pcf
|
||||
*.bit
|
||||
*.msk
|
||||
*.svf
|
||||
*.log
|
||||
isim
|
||||
*_[sfot]sim.vhd
|
||||
*_tsim.sdf
|
||||
rlink_cext_fifo_[rt]x
|
||||
rlink_cext_conf
|
||||
tmu_ofile
|
||||
*.dsk
|
||||
*.tap
|
||||
*.lst
|
||||
*.cof
|
||||
.Xil
|
||||
project_mflow
|
||||
xsim.dir
|
||||
webtalk_*
|
||||
*_[sfot]sim
|
||||
*_[IX]Sim
|
||||
*_[IX]Sim_[sfot]sim
|
||||
*.dcp
|
||||
*.jou
|
||||
*.pb
|
||||
*.prj
|
||||
*.rpt
|
||||
*.wdb
|
||||
core
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
.\" -*- nroff -*-
|
||||
.\" $Id: svn_set_ignore.1 550 2014-02-03 08:16:57Z mueller $
|
||||
.\" $Id: svn_set_ignore.1 822 2016-12-17 18:50:04Z mueller $
|
||||
.\"
|
||||
.\" Copyright 2013- by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
|
||||
.\"
|
||||
@ -8,7 +8,7 @@
|
||||
.TH SVN_SET_IGNORE 1 2010-04-26 "Retro Project" "Retro Project Manual"
|
||||
.\" ------------------------------------------------------------------
|
||||
.SH NAME
|
||||
svn_set_ignore \- setup svn:ignore properties based on .cvsignore files
|
||||
svn_set_ignore \- setup svn:ignore properties based on .gitignore files
|
||||
.\" ------------------------------------------------------------------
|
||||
.SH SYNOPSIS
|
||||
.
|
||||
@ -20,13 +20,13 @@ svn_set_ignore \- setup svn:ignore properties based on .cvsignore files
|
||||
.SH DESCRIPTION
|
||||
Creates or updates a \fIsvn:ignore\fP property for the current directory
|
||||
and all sub-directories. The current directory must contain a
|
||||
\fI.cvsignore\fP file which defines the default list of ignore patterns for the
|
||||
whole project. If a local \fI.cvsignore\fP file is found in a sub directory
|
||||
its content will be appended to the default list.
|
||||
\fI.gitignore\fP file which defines the default list of ignore patterns for the
|
||||
whole project. The local ignore pattern for each directory is the concatination
|
||||
of all \fI.gitignore\fP files found in the directory hierarchy.
|
||||
.
|
||||
If no \fIsvn:ignore\fP property exists or the existing one differs from
|
||||
the ignore pattern list determined from the top level and local
|
||||
\f.cvsignore\fP file the property is set or updated.
|
||||
\f.gitignore\fP file the property is set or updated.
|
||||
.
|
||||
.\" ------------------------------------------------------------------
|
||||
.SH OPTIONS
|
||||
@ -38,8 +38,8 @@ svn repository.
|
||||
.
|
||||
.\" ------------------------------------------------------------------
|
||||
.SH EXIT STATUS
|
||||
If no \fI.cvsignore\fP file is found or a \fBsvn\fP(1) command fails the
|
||||
script dies with exit status 2.
|
||||
If no top level \fI.gitignore\fP file is found or a \fBsvn\fP(1) command fails
|
||||
the script dies with exit status 2.
|
||||
.
|
||||
.\" ------------------------------------------------------------------
|
||||
.SH "SEE ALSO"
|
||||
|
||||
55
rtl/.gitignore
vendored
Normal file
55
rtl/.gitignore
vendored
Normal file
@ -0,0 +1,55 @@
|
||||
# ghdl + gtkwave
|
||||
work-obj93.cf
|
||||
ghdl.[bsfort]sim
|
||||
*.vcd
|
||||
*.ghw
|
||||
*.sav
|
||||
*.gcov
|
||||
*.gcda
|
||||
*.gcno
|
||||
|
||||
# generated hdl models
|
||||
*_[sfort]sim.vhd
|
||||
*_[sorept]sim.v
|
||||
*_[ept]sim.sdf
|
||||
|
||||
# Xilinx tools ISE
|
||||
ise
|
||||
xflow.his
|
||||
*.ngc
|
||||
*.ncd
|
||||
*.pcf
|
||||
*.bit
|
||||
*.msk
|
||||
*.svf
|
||||
*.log
|
||||
isim
|
||||
fuse.xmsgs
|
||||
fuseRelaunch.cmd
|
||||
|
||||
# Xilinx tools Vivado
|
||||
.Xil
|
||||
project_mflow
|
||||
xsim.dir
|
||||
xsim.[bsorept]sim.*
|
||||
webtalk_*
|
||||
*_[sfot]sim
|
||||
*_[IX]Sim
|
||||
*_[IX]Sim_[sfot]sim
|
||||
*.dcp
|
||||
*.jou
|
||||
*.pb
|
||||
*.prj
|
||||
*.rpt
|
||||
*.wdb
|
||||
|
||||
# rlink
|
||||
rlink_cext_fifo_[rt]x
|
||||
rlink_cext_conf
|
||||
|
||||
# simulation
|
||||
tmu_ofile
|
||||
*.dsk
|
||||
*.tap
|
||||
*.lst
|
||||
*.cof
|
||||
2
tools/asm-11/.gitignore
vendored
Normal file
2
tools/asm-11/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
*.lda
|
||||
*.lst
|
||||
1
tools/asm-11/tests/.gitignore
vendored
1
tools/asm-11/tests/.gitignore
vendored
@ -1,3 +1,2 @@
|
||||
*.lda
|
||||
*.ldart
|
||||
*.lstrt
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/perl -w
|
||||
# $Id: svn_set_ignore 601 2014-11-07 22:44:43Z mueller $
|
||||
# $Id: svn_set_ignore 822 2016-12-17 18:50:04Z mueller $
|
||||
#
|
||||
# Copyright 2007-2014 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
|
||||
# Copyright 2007-2016 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
|
||||
#
|
||||
# This program is free software; you may redistribute and/or modify it under
|
||||
# the terms of the GNU General Public License as published by the Free
|
||||
@ -14,12 +14,13 @@
|
||||
#
|
||||
# Revision History:
|
||||
# Date Rev Vers Comment
|
||||
# 2016-12-17 821 1.2 use .gitignore rather .cvsignore
|
||||
# 2014-11-04 601 1.1 use 'svn info' rather /.svn check for svn >= 1.7
|
||||
# 2010-04-26 284 1.0.1 add error check for GetOptions
|
||||
# 2007-06-16 56 1.0 Initial version
|
||||
#
|
||||
|
||||
use 5.005; # require Perl 5.005 or higher
|
||||
use 5.14.0; # require Perl 5.14 or higher
|
||||
use strict; # require strict checking
|
||||
|
||||
use Getopt::Long;
|
||||
@ -27,33 +28,30 @@ use Getopt::Long;
|
||||
sub do_dir;
|
||||
|
||||
my @dirlist;
|
||||
my @def_ipat;
|
||||
my %ignores;
|
||||
|
||||
my %opts = ();
|
||||
|
||||
GetOptions(\%opts, "dry-run")
|
||||
GetOptions(\%opts, "trace", "dry-run")
|
||||
or die "bad options";
|
||||
|
||||
if (@ARGV) {
|
||||
push @dirlist, @ARGV;
|
||||
} else {
|
||||
@dirlist = `find -type d | grep -v "\.svn"`;
|
||||
@dirlist = `find -type d | sort`;
|
||||
die "bad find|grep" if $?;
|
||||
chomp @dirlist;
|
||||
# drop some directories at this level
|
||||
@dirlist = grep {! /\/(\.svn|\.Xil)/} @dirlist;
|
||||
}
|
||||
|
||||
open (CVSIG, ".cvsignore") or die "no top level .cvsigore found";
|
||||
@def_ipat = grep /.+/, <CVSIG>;
|
||||
close (CVSIG);
|
||||
|
||||
foreach (@dirlist) { chomp; do_dir($_); }
|
||||
foreach (@dirlist) { do_dir($_); }
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
|
||||
sub do_dir {
|
||||
my ($dirname) = @_;
|
||||
my @cur_ipat;
|
||||
my @loc_ipat;
|
||||
my @sum_ipat;
|
||||
my @new_ipat;
|
||||
my %ipat;
|
||||
|
||||
@ -64,43 +62,54 @@ sub do_dir {
|
||||
return if $?;
|
||||
|
||||
print "$dirname\n";
|
||||
open (SVN, "svn pg svn:ignore $dirname|") or die "failed to open svn pg pipe";
|
||||
@cur_ipat = grep /.+/, <SVN>; # prop get and drop empty lines
|
||||
close (SVN);
|
||||
|
||||
if ($dirname ne "." && -r "$dirname/.cvsignore") {
|
||||
open (CVSIG, "$dirname/.cvsignore")
|
||||
or die "failed to read local .cvsignore";
|
||||
@loc_ipat = grep /.+/, <CVSIG>;
|
||||
close (CVSIG);
|
||||
}
|
||||
|
||||
push @sum_ipat, @def_ipat;
|
||||
push @sum_ipat, @loc_ipat;
|
||||
|
||||
foreach (@sum_ipat) {
|
||||
if (exists $ipat{$_}) {
|
||||
my $pat = $_;
|
||||
chomp $pat;
|
||||
print "duplicate ignore: $pat in $dirname\n";
|
||||
} else {
|
||||
$ipat{$_} = 1;
|
||||
push @new_ipat, $_;
|
||||
my @dpelist = split '/', $dirname;
|
||||
my @dpecurr = ();
|
||||
foreach my $e (@dpelist) {
|
||||
push @dpecurr, $e;
|
||||
my $d = join '/',@dpecurr;
|
||||
if (not exists $ignores{$d}) {
|
||||
$ignores{$d} = ();
|
||||
if (-r "$d/.gitignore") {
|
||||
print "read $d/.gitignore\n" if exists $opts{trace};
|
||||
open (CVSIG, "$d/.gitignore")
|
||||
or die "failed to read $d/.gitignore";
|
||||
while (<CVSIG>) {
|
||||
chomp;
|
||||
next if /^\s*$/; # ignore empty or space only lines
|
||||
next if /^#/; # ignore comments
|
||||
push @{$ignores{$d}}, $_;
|
||||
print " $_\n" if exists $opts{trace};
|
||||
}
|
||||
close (CVSIG);
|
||||
}
|
||||
}
|
||||
foreach my $i (@{$ignores{$d}}) {
|
||||
next if exists $ipat{$i};
|
||||
$ipat{$i} = 1;
|
||||
push @new_ipat, $i;
|
||||
}
|
||||
}
|
||||
|
||||
if (join("",@cur_ipat) ne join("",@new_ipat)) {
|
||||
open (SVN, "svn pg svn:ignore $dirname|")
|
||||
or die "failed to open svn pg pipe for '$dirname'";
|
||||
while (<SVN>) {
|
||||
chomp;
|
||||
next if /^\s*$/; # ignore empty or space only lines
|
||||
push @cur_ipat, $_;
|
||||
}
|
||||
close (SVN);
|
||||
|
||||
if (join("\n",@cur_ipat) ne join("\n",@new_ipat)) {
|
||||
print "update svn:ignore for $dirname\n";
|
||||
print "old svn:ignore:\n";
|
||||
print " ", join " ",@cur_ipat if @cur_ipat;
|
||||
print "local .cvsignore:\n";
|
||||
print " ", join " ",@loc_ipat if @loc_ipat;
|
||||
print " ", join("\n ",@cur_ipat),"\n";
|
||||
print "new svn:ignore:\n";
|
||||
print " ", join " ",@new_ipat if @new_ipat;
|
||||
print " ", join("\n ",@new_ipat),"\n";
|
||||
|
||||
if (not exists $opts{"dry-run"}) {
|
||||
open (TMP, ">/tmp/svn_set_ignore_$$") or die "failed to open tmp file";
|
||||
print TMP join "",@new_ipat;
|
||||
print TMP join("\n",@new_ipat),"\n";
|
||||
close (TMP);
|
||||
print `svn ps svn:ignore -F /tmp/svn_set_ignore_$$ $dirname`;
|
||||
die "bad svn ps" if $?;
|
||||
|
||||
10
tools/oskit/.gitignore
vendored
Normal file
10
tools/oskit/.gitignore
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
*.dsk
|
||||
*.tap
|
||||
|
||||
# simulation stuff
|
||||
rlink_cext_conf
|
||||
rlink_cext_fifo_rx
|
||||
rlink_cext_fifo_tx
|
||||
|
||||
# monitoring stuff
|
||||
*.scnt
|
||||
1
tools/src/librlink/.gitignore
vendored
1
tools/src/librlink/.gitignore
vendored
@ -1 +0,0 @@
|
||||
*.dep
|
||||
1
tools/src/librlinktpp/.gitignore
vendored
1
tools/src/librlinktpp/.gitignore
vendored
@ -1 +0,0 @@
|
||||
*.dep
|
||||
1
tools/src/librtcltools/.gitignore
vendored
1
tools/src/librtcltools/.gitignore
vendored
@ -1 +0,0 @@
|
||||
*.dep
|
||||
1
tools/src/librtools/.gitignore
vendored
1
tools/src/librtools/.gitignore
vendored
@ -1 +0,0 @@
|
||||
*.dep
|
||||
1
tools/src/librutiltpp/.gitignore
vendored
1
tools/src/librutiltpp/.gitignore
vendored
@ -1 +0,0 @@
|
||||
*.dep
|
||||
1
tools/src/librw11/.gitignore
vendored
1
tools/src/librw11/.gitignore
vendored
@ -1 +0,0 @@
|
||||
*.dep
|
||||
1
tools/src/librwxxtpp/.gitignore
vendored
1
tools/src/librwxxtpp/.gitignore
vendored
@ -1 +0,0 @@
|
||||
*.dep
|
||||
1
tools/src/tclshcpp/.gitignore
vendored
1
tools/src/tclshcpp/.gitignore
vendored
@ -1 +0,0 @@
|
||||
*.dep
|
||||
1
tools/src/testtclsh/.gitignore
vendored
1
tools/src/testtclsh/.gitignore
vendored
@ -1,2 +1 @@
|
||||
*.dep
|
||||
testtclsh
|
||||
|
||||
1
tools/tcl/ibd_ibmon/.gitignore
vendored
1
tools/tcl/ibd_ibmon/.gitignore
vendored
@ -1 +0,0 @@
|
||||
pkgIndex.tcl
|
||||
1
tools/tcl/ibd_lp11/.gitignore
vendored
1
tools/tcl/ibd_lp11/.gitignore
vendored
@ -1 +0,0 @@
|
||||
pkgIndex.tcl
|
||||
1
tools/tcl/ibd_pc11/.gitignore
vendored
1
tools/tcl/ibd_pc11/.gitignore
vendored
@ -1 +0,0 @@
|
||||
pkgIndex.tcl
|
||||
1
tools/tcl/ibd_rhrp/.gitignore
vendored
1
tools/tcl/ibd_rhrp/.gitignore
vendored
@ -1 +0,0 @@
|
||||
pkgIndex.tcl
|
||||
1
tools/tcl/ibd_rk11/.gitignore
vendored
1
tools/tcl/ibd_rk11/.gitignore
vendored
@ -1 +0,0 @@
|
||||
pkgIndex.tcl
|
||||
1
tools/tcl/ibd_rl11/.gitignore
vendored
1
tools/tcl/ibd_rl11/.gitignore
vendored
@ -1 +0,0 @@
|
||||
pkgIndex.tcl
|
||||
1
tools/tcl/ibd_tm11/.gitignore
vendored
1
tools/tcl/ibd_tm11/.gitignore
vendored
@ -1 +0,0 @@
|
||||
pkgIndex.tcl
|
||||
1
tools/tcl/rbbram/.gitignore
vendored
1
tools/tcl/rbbram/.gitignore
vendored
@ -1 +0,0 @@
|
||||
pkgIndex.tcl
|
||||
1
tools/tcl/rbemon/.gitignore
vendored
1
tools/tcl/rbemon/.gitignore
vendored
@ -1 +0,0 @@
|
||||
pkgIndex.tcl
|
||||
1
tools/tcl/rbmoni/.gitignore
vendored
1
tools/tcl/rbmoni/.gitignore
vendored
@ -1 +0,0 @@
|
||||
pkgIndex.tcl
|
||||
1
tools/tcl/rbs3hio/.gitignore
vendored
1
tools/tcl/rbs3hio/.gitignore
vendored
@ -1 +0,0 @@
|
||||
pkgIndex.tcl
|
||||
1
tools/tcl/rbsysmon/.gitignore
vendored
1
tools/tcl/rbsysmon/.gitignore
vendored
@ -1 +0,0 @@
|
||||
pkgIndex.tcl
|
||||
1
tools/tcl/rbtest/.gitignore
vendored
1
tools/tcl/rbtest/.gitignore
vendored
@ -1 +0,0 @@
|
||||
pkgIndex.tcl
|
||||
1
tools/tcl/rlink/.gitignore
vendored
1
tools/tcl/rlink/.gitignore
vendored
@ -1 +0,0 @@
|
||||
pkgIndex.tcl
|
||||
1
tools/tcl/rutil/.gitignore
vendored
1
tools/tcl/rutil/.gitignore
vendored
@ -1 +0,0 @@
|
||||
pkgIndex.tcl
|
||||
1
tools/tcl/rw11/.gitignore
vendored
1
tools/tcl/rw11/.gitignore
vendored
@ -1 +0,0 @@
|
||||
pkgIndex.tcl
|
||||
1
tools/tcl/rw11util/.gitignore
vendored
1
tools/tcl/rw11util/.gitignore
vendored
@ -1 +0,0 @@
|
||||
pkgIndex.tcl
|
||||
1
tools/tcl/tst_rlink/.gitignore
vendored
1
tools/tcl/tst_rlink/.gitignore
vendored
@ -1 +0,0 @@
|
||||
pkgIndex.tcl
|
||||
1
tools/tcl/tst_sram/.gitignore
vendored
1
tools/tcl/tst_sram/.gitignore
vendored
@ -1 +0,0 @@
|
||||
pkgIndex.tcl
|
||||
Loading…
x
Reference in New Issue
Block a user