-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Makefile, debian package and some explanation
- Loading branch information
Showing
12 changed files
with
482 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/make | ||
prefix=/usr/local | ||
|
||
all: | ||
|
||
install: | ||
install -D kicad-git-filters.py $(DESTDIR)$(prefix)/bin/kicad-git-filters.py | ||
|
||
clean: | ||
|
||
distclean: clean | ||
|
||
uninstall: | ||
-rm -f $(DESTDIR)$(prefix)/bin/kicad-git-filters.py | ||
|
||
deb: | ||
fakeroot dpkg-buildpackage -uc -b | ||
|
||
debclean: | ||
fakeroot debian/rules clean | ||
|
||
|
||
.PHONY: all install clean distclean uninstall deb | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,48 @@ | ||
# kicad-git-filters | ||
Scripts to make KiCad files more git friendly | ||
Scripts to make KiCad files more git friendly. | ||
|
||
One problem with some KiCad files is that they contain time stamps inside. | ||
It means that every time you generate one of these files you'll get changes, | ||
even when the important content didn't change. This could be very annoying | ||
when using revision tools like *git*. | ||
|
||
This isn't really needed if you can trust the time stamp of the files. | ||
When using *git* you can easily find the exact time stamp for a commit. | ||
This is not the same as the time when the file was actually created, but | ||
is quite similar. In projects where this difference is tolerable and | ||
you don't want to commit tons of ridiculous changes you can filter | ||
these time stamps. | ||
|
||
This script configures *git* to store the files with a marker instead of | ||
the time stamp. When you check-out the project the markers are replaced | ||
by the actual time stamp. If you need to know the real time stamp you must | ||
consult it using *git*. Note that files that you created mantain the | ||
original time stamp. | ||
|
||
# Installation | ||
|
||
## Dependencies | ||
|
||
This is a Python 3.x script, only standard modules are used. | ||
|
||
## | ||
|
||
To install the script run (as root): | ||
|
||
``` | ||
# make install | ||
``` | ||
|
||
The scripts will be copied to */usr/local/bin*. If you want to install the scripts in */usr/bin* run | ||
|
||
|
||
``` | ||
# make prefix=/usr install | ||
``` | ||
|
||
Note: if you are using Debian, or some derived distro like Ubuntu, you can find a Debian package in the releases section. | ||
|
||
# Credits and notes | ||
|
||
* This script is strongly based on Jesse Vincent [work](https://github.com/obra/kicad-tools). | ||
* I'm not a Python programmer, stackoverflow helps me ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
kicad-git-filters for Debian | ||
|
||
This is a simple package for the KiCad Git Filters tool. | ||
|
||
-- Salvador Eduardo Tropea <salvador@inti.gob.ar> Tue, 03 Mar 2020 07:17:31 -0300 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
kicad-git-filters (1.0.0-1) unstable; urgency=low | ||
|
||
* Initial release. | ||
|
||
-- Salvador Eduardo Tropea <salvador@inti.gob.ar> Tue, 03 Mar 2020 07:17:31 -0300 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
11 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Source: kicad-git-filters | ||
Section: electronics | ||
Priority: optional | ||
Maintainer: Salvador Eduardo Tropea <salvador@inti.gob.ar> | ||
Build-Depends: debhelper (>=11~), dh-python, python3-all | ||
Standards-Version: 4.1.4 | ||
Homepage: https://github.com/INTI-CMNB/kicad-git-filters | ||
X-Python3-Version: >= 3.2 | ||
|
||
Package: kicad-git-filters | ||
Architecture: all | ||
Multi-Arch: foreign | ||
Depends: ${misc:Depends}, ${python3:Depends}, git | ||
Description: KiCad Git Filters | ||
This package provides a tool to configure git repos so you | ||
don't get tons of useless changes on files generated by | ||
KiCad that contain the time stamp inside. | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/make -f | ||
|
||
%: | ||
dh $@ --with python3 | ||
|
||
override_dh_auto_install: | ||
dh_auto_install -- prefix=/usr | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3.0 (quilt) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Uncomment to active options. See dpkg-source(1) | ||
#abort-on-upstream-changes | ||
#unapply-patches |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
version=3 | ||
https://github.com/INTI-CMNB/kicad-git-filters/tags .*/(\d[\d\.]*)\.(?:tar.gz|tar.bz2|tar.xz) | ||
|