mirror of
git://projects.qi-hardware.com/fped.git
synced 2024-11-18 09:35:20 +02:00
move debian/* to https://github.com/xiangfu/deb-pkg/
This commit is contained in:
parent
9ab9ae66dd
commit
d59b47204a
10
debian/autogen.sh
vendored
10
debian/autogen.sh
vendored
@ -1,10 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
# Generate debian/changelog.upstream.
|
|
||||||
#
|
|
||||||
# Uses debian/changelog and the git revision log.
|
|
||||||
#
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
dpkg-parsechangelog --format rfc822 --all |
|
|
||||||
awk -f debian/changelog.upstream.awk
|
|
21
debian/changelog
vendored
21
debian/changelog
vendored
@ -1,21 +0,0 @@
|
|||||||
fped (0.1+201210-1) unstable; urgency=low
|
|
||||||
|
|
||||||
* New snapshot, taken from commit 5b21495
|
|
||||||
* Switched to new project host: http://projects.qi-hardware.com/p/fped
|
|
||||||
* debian/rules:
|
|
||||||
- include debian buildflags
|
|
||||||
- rewrite as a minimal rules file using dh
|
|
||||||
- add a get-orig-source target
|
|
||||||
* Fix "FTBFS: tsort: cycle: ./Common: line 37: 2851 Aborted"
|
|
||||||
This was a "false error" - the regression test is supposed to cause
|
|
||||||
fped to abort, which it did, but the shell didn't print "Aborted" on
|
|
||||||
that(Debian on Renesas SH(sh4) CPU) platform (Closes: #606536).
|
|
||||||
|
|
||||||
-- Xiangfu Liu <xiangfu@openmobilefree.net> Mon, 08 Oct 2012 11:38:57 +0800
|
|
||||||
|
|
||||||
fped (0.0+r5986-1) unstable; urgency=low
|
|
||||||
|
|
||||||
* New snapshot, taken from commit feae08f
|
|
||||||
* Initial release (Closes: #599090).
|
|
||||||
|
|
||||||
-- Xiangfu Liu <xiangfu@openmobilefree.net> Mon, 04 Oct 2010 23:27:52 +0800
|
|
113
debian/changelog.upstream.awk
vendored
113
debian/changelog.upstream.awk
vendored
@ -1,113 +0,0 @@
|
|||||||
#!/bin/awk -f
|
|
||||||
# Generate debian/changelog.upstream from debian/changelog and
|
|
||||||
# the git revision log. Inspired by Gerrit Pape’s
|
|
||||||
# debian/changelog.upstream.sh, from the git-core Debian package.
|
|
||||||
#
|
|
||||||
# Requires a working /dev/stderr.
|
|
||||||
#
|
|
||||||
# Usage:
|
|
||||||
# dpkg-parsechangelog --format rfc822 --all |
|
|
||||||
# awk -f debian/changelog.upstream.awk
|
|
||||||
|
|
||||||
# If argument matches /^Version: /, return remaining text.
|
|
||||||
# Result is nonempty if and only if argument matches.
|
|
||||||
function version_line(line) {
|
|
||||||
if (line ~ /^Version: /) {
|
|
||||||
sub(/^Version: /, "", line);
|
|
||||||
return line;
|
|
||||||
}
|
|
||||||
return "";
|
|
||||||
}
|
|
||||||
|
|
||||||
# If argument matches /^\*.* from commit /, return remaining text.
|
|
||||||
# Result is nonempty if and only if argument matches.
|
|
||||||
function commit_id_line(line) {
|
|
||||||
if (line ~ / from commit /) {
|
|
||||||
sub(/^.* from commit /, "", line);
|
|
||||||
sub(/[(][Cc]loses.*/, "", line);
|
|
||||||
sub(/[^0-9a-f]*$/, "", line);
|
|
||||||
return line;
|
|
||||||
}
|
|
||||||
return "";
|
|
||||||
}
|
|
||||||
|
|
||||||
# Read standard input, scanning for a changelog entry of the
|
|
||||||
# form “* New snapshot, taken from commit <blah>.”
|
|
||||||
# Result is <blah>.
|
|
||||||
# Result is empty and writes a message to standard error if no such entry is
|
|
||||||
# found before the next Version: line with a different upstream
|
|
||||||
# version (or EOF).
|
|
||||||
# Argument is the upstream version sought.
|
|
||||||
function read_commit_id(upstream, line,version,corresponding_upstream,commit) {
|
|
||||||
while (getline line) {
|
|
||||||
version = version_line(line);
|
|
||||||
corresponding_upstream = version;
|
|
||||||
sub(/-[^-]*$/, "", corresponding_upstream);
|
|
||||||
if (version != "" && corresponding_upstream != upstream)
|
|
||||||
break;
|
|
||||||
|
|
||||||
commit = commit_id_line(line);
|
|
||||||
if (commit != "")
|
|
||||||
return commit;
|
|
||||||
}
|
|
||||||
|
|
||||||
print "No commit id for " upstream >> "/dev/stderr";
|
|
||||||
return "";
|
|
||||||
}
|
|
||||||
|
|
||||||
BEGIN {
|
|
||||||
last = "none";
|
|
||||||
last_cid = "none";
|
|
||||||
cl = "debian/changelog.upstream";
|
|
||||||
}
|
|
||||||
|
|
||||||
# Add a list of all revisions up to last to debian/changelog.upstream
|
|
||||||
# and set last = new_cid.
|
|
||||||
# new is a user-readable name for the commit new_cide.
|
|
||||||
function add_version(new,new_cid, limiter,versionline,command,line) {
|
|
||||||
if (last == "none") {
|
|
||||||
printf "" > cl;
|
|
||||||
last = new;
|
|
||||||
last_cid = new_cid;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (new == "none") {
|
|
||||||
versionline = "Version " last;
|
|
||||||
limiter = "";
|
|
||||||
} else {
|
|
||||||
versionline = "Version " last "; changes since " new ":";
|
|
||||||
limiter = new_cid "..";
|
|
||||||
}
|
|
||||||
print versionline >> cl;
|
|
||||||
gsub(/./, "-", versionline);
|
|
||||||
print versionline >> cl;
|
|
||||||
|
|
||||||
print "" >> cl;
|
|
||||||
command = "git shortlog \"" limiter last_cid "\"";
|
|
||||||
while(command | getline line)
|
|
||||||
print line >> cl;
|
|
||||||
|
|
||||||
if (new != "none")
|
|
||||||
print "" >> cl;
|
|
||||||
last = new;
|
|
||||||
last_cid = new_cid;
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
|
||||||
version = version_line($0);
|
|
||||||
if (version != "") {
|
|
||||||
# strip Debian revision
|
|
||||||
upstream_version = version;
|
|
||||||
sub(/-[^-]*$/, "", upstream_version);
|
|
||||||
|
|
||||||
commit = read_commit_id(upstream_version);
|
|
||||||
if (commit == "")
|
|
||||||
exit 1;
|
|
||||||
add_version(upstream_version, commit);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
END {
|
|
||||||
add_version("none", "none");
|
|
||||||
}
|
|
108
debian/clean.sh
vendored
108
debian/clean.sh
vendored
@ -1,108 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
# Clean up after a failed build.
|
|
||||||
#
|
|
||||||
# Requires access to .gitignore files excluding _all_ modified files.
|
|
||||||
#
|
|
||||||
# Requires a working /dev/fd (with more than just /dev/fd/0 and 1)
|
|
||||||
# or gawk.
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
splitgitignore='#!/usr/bin/awk
|
|
||||||
!/^#/ && !/^$/ {
|
|
||||||
glob = /[[*?]/;
|
|
||||||
directory = /\/$/;
|
|
||||||
sub(/\/$/, "");
|
|
||||||
anchored = /\//;
|
|
||||||
sub(/^\//, "");
|
|
||||||
|
|
||||||
output = "nonexistent/nonsense";
|
|
||||||
if (anchored) {
|
|
||||||
if (!directory && !glob)
|
|
||||||
output = "/dev/fd/1";
|
|
||||||
else if (directory && !glob)
|
|
||||||
output = "/dev/fd/3";
|
|
||||||
else if (!directory && glob)
|
|
||||||
output = "/dev/fd/4";
|
|
||||||
else if (directory && glob)
|
|
||||||
output = "/dev/fd/5";
|
|
||||||
} else {
|
|
||||||
if (!directory)
|
|
||||||
output = "/dev/fd/6";
|
|
||||||
else
|
|
||||||
output = "/dev/fd/7";
|
|
||||||
}
|
|
||||||
print >> output;
|
|
||||||
}
|
|
||||||
'
|
|
||||||
|
|
||||||
offlimits="-type d -name '.*' -prune -o -type d -name debian -prune"
|
|
||||||
|
|
||||||
remove_file_globs() {
|
|
||||||
while read glob
|
|
||||||
do
|
|
||||||
eval "rm -f $glob"
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
remove_directory_globs() {
|
|
||||||
while read glob
|
|
||||||
do
|
|
||||||
eval "rm -fr $glob"
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
remove_file_findpatterns() {
|
|
||||||
while read pat
|
|
||||||
do
|
|
||||||
find . $offlimits -o \
|
|
||||||
'(' -name "$pat" -execdir rm -f '{}' + ')'
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
remove_directory_findpatterns() {
|
|
||||||
while read pat
|
|
||||||
do
|
|
||||||
find . $offlimits -o \
|
|
||||||
'(' -type d -name "$pat" -execdir rm -fr '{}' + ')'
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
find . $offlimits -o '(' -name .gitignore -print ')' |
|
|
||||||
while read file
|
|
||||||
do
|
|
||||||
(
|
|
||||||
cd "$(dirname "$file")"
|
|
||||||
# Dispatch using pipes. Yuck.
|
|
||||||
{ { { { {
|
|
||||||
awk "$splitgitignore" |
|
|
||||||
{
|
|
||||||
# anchored files (globless)
|
|
||||||
xargs -d '\n' rm -f
|
|
||||||
}
|
|
||||||
} 3>&1 >&2 |
|
|
||||||
{
|
|
||||||
# anchored directories (globless)
|
|
||||||
xargs -d '\n' rm -fr
|
|
||||||
}
|
|
||||||
} 4>&1 >&2 |
|
|
||||||
{
|
|
||||||
# anchored files
|
|
||||||
remove_file_globs
|
|
||||||
}
|
|
||||||
} 5>&1 >&2 |
|
|
||||||
{
|
|
||||||
# anchored directories
|
|
||||||
remove_directory_globs
|
|
||||||
}
|
|
||||||
} 6>&1 >&2 |
|
|
||||||
{
|
|
||||||
# unanchored files
|
|
||||||
remove_file_findpatterns
|
|
||||||
}
|
|
||||||
} 7>&1 >&2 |
|
|
||||||
{
|
|
||||||
remove_directory_findpatterns
|
|
||||||
} >&2
|
|
||||||
) < "$file"
|
|
||||||
done
|
|
1
debian/compat
vendored
1
debian/compat
vendored
@ -1 +0,0 @@
|
|||||||
7
|
|
26
debian/control
vendored
26
debian/control
vendored
@ -1,26 +0,0 @@
|
|||||||
Source: fped
|
|
||||||
Section: electronics
|
|
||||||
Priority: extra
|
|
||||||
Maintainer: Xiangfu Liu <xiangfu@openmobilefree.net>
|
|
||||||
Build-Depends: debhelper (>= 7.4.10), dpkg-dev (>= 1.16.1~), pkg-config,
|
|
||||||
bash (>= 4), flex, bison,
|
|
||||||
imagemagick, transfig, netpbm, ghostscript,
|
|
||||||
libgtk2.0-dev
|
|
||||||
Standards-Version: 3.9.4
|
|
||||||
Homepage: http://downloads.qi-hardware.com/people/werner/fped/gui.html
|
|
||||||
Vcs-Git: git://projects.qi-hardware.com/fped.git
|
|
||||||
|
|
||||||
Package: fped
|
|
||||||
Architecture: any
|
|
||||||
Depends: ${shlibs:Depends}, ${misc:Depends}
|
|
||||||
Description: Footprint editor
|
|
||||||
fped is an editor that allows the interactive creation of footprints of
|
|
||||||
electronic components. Footprint definitions are stored in a text format
|
|
||||||
that resembles a programming language.
|
|
||||||
.
|
|
||||||
The language is constrained such that anything that can be expressed in
|
|
||||||
the textual definition also has a straightforward equivalent operation
|
|
||||||
that can be performed through the GUI.
|
|
||||||
.
|
|
||||||
A description of the GUI can be found here:
|
|
||||||
http://downloads.qi-hardware.com/people/werner/fped/gui.html
|
|
39
debian/copyright
vendored
39
debian/copyright
vendored
@ -1,39 +0,0 @@
|
|||||||
This work was packaged for Debian by:
|
|
||||||
|
|
||||||
Xiangfu Liu <xiangfu@openmobilefree.net> on Mon, 4 Oct 2010 15:14:14 +0800
|
|
||||||
|
|
||||||
It was downloaded from:
|
|
||||||
|
|
||||||
http://projects.qi-hardware.com/p/fped/
|
|
||||||
|
|
||||||
Upstream Author:
|
|
||||||
|
|
||||||
Werner Almesberger <werner@almesberger.net>
|
|
||||||
|
|
||||||
Copyright:
|
|
||||||
|
|
||||||
Copyright 2009-2011 by Werner Almesberger
|
|
||||||
|
|
||||||
License:
|
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU General Public License as published by
|
|
||||||
the Free Software Foundation, either version 2 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
This package is distributed in the hope that it will be useful,
|
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
GNU General Public License for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
|
|
||||||
On Debian systems, the complete text of the GNU General
|
|
||||||
Public License version 2 can be found in `/usr/share/common-licenses/GPL-2'.
|
|
||||||
|
|
||||||
The Debian packaging is:
|
|
||||||
|
|
||||||
Copyright (C) 2010 Xiangfu Liu <xiangfu@openmobilefree.net> and is licensed
|
|
||||||
under the GPL version 2, see above.
|
|
||||||
|
|
1
debian/dirs
vendored
1
debian/dirs
vendored
@ -1 +0,0 @@
|
|||||||
usr/bin
|
|
1
debian/fped.manpages
vendored
1
debian/fped.manpages
vendored
@ -1 +0,0 @@
|
|||||||
fped.1
|
|
30
debian/get-orig-source.sh
vendored
30
debian/get-orig-source.sh
vendored
@ -1,30 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
# Build a tarball from the latest upstream version, with a nice
|
|
||||||
# version number.
|
|
||||||
#
|
|
||||||
# Requires git 1.6.6 or later, GNU date, and gzip.
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
: ${REPO=git://projects.qi-hardware.com/fped.git}
|
|
||||||
: ${BRANCH=remotes/origin/master}
|
|
||||||
|
|
||||||
mkdir debian-orig-source
|
|
||||||
trap 'rm -fr debian-orig-source || exit 1' EXIT
|
|
||||||
|
|
||||||
git init -q debian-orig-source
|
|
||||||
GIT_DIR=$(pwd)/debian-orig-source/.git
|
|
||||||
export GIT_DIR
|
|
||||||
|
|
||||||
# Fetch latest upstream version.
|
|
||||||
git fetch -q "$REPO" "$BRANCH"
|
|
||||||
|
|
||||||
# Determine version number.
|
|
||||||
release=0.1
|
|
||||||
date=$(date --utc --date="$(git log -1 --pretty=format:%cD FETCH_HEAD)" "+%Y%m")
|
|
||||||
upstream_version="${release}+${date}"
|
|
||||||
|
|
||||||
# Generate tarball.
|
|
||||||
echo "packaging $(git rev-parse --short FETCH_HEAD)"
|
|
||||||
git archive --format=tar --prefix="fped_${date}/" FETCH_HEAD |
|
|
||||||
gzip -n -9 >"fped_$upstream_version.orig.tar.gz"
|
|
30
debian/rules
vendored
30
debian/rules
vendored
@ -1,30 +0,0 @@
|
|||||||
#!/usr/bin/make -f
|
|
||||||
# This file is in the public domain.
|
|
||||||
# You may freely use, modify, distribute, and relicense it.
|
|
||||||
|
|
||||||
# Uncomment this to turn on verbose mode.
|
|
||||||
#export DH_VERBOSE=1
|
|
||||||
|
|
||||||
DPKG_EXPORT_BUILDFLAGS = 1
|
|
||||||
include /usr/share/dpkg/buildflags.mk
|
|
||||||
|
|
||||||
export PREFIX=/usr
|
|
||||||
|
|
||||||
%:
|
|
||||||
dh $@
|
|
||||||
|
|
||||||
override_dh_auto_clean:
|
|
||||||
$(MAKE) spotless
|
|
||||||
sh debian/clean.sh
|
|
||||||
|
|
||||||
override_dh_installchangelogs:
|
|
||||||
dpkg-parsechangelog --format rfc822 --all | \
|
|
||||||
awk -f debian/changelog.upstream.awk
|
|
||||||
dh_installchangelogs debian/changelog.upstream
|
|
||||||
|
|
||||||
REPO = git://projects.qi-hardware.com/fped.git
|
|
||||||
BRANCH = master
|
|
||||||
get-orig-source:
|
|
||||||
REPO='$(REPO)' BRANCH='$(BRANCH)' \
|
|
||||||
sh ./debian/get-orig-source.sh
|
|
||||||
|
|
1
debian/source/format
vendored
1
debian/source/format
vendored
@ -1 +0,0 @@
|
|||||||
3.0 (quilt)
|
|
1
debian/watch
vendored
1
debian/watch
vendored
@ -1 +0,0 @@
|
|||||||
# We track fped svn revisions, thus no need for a watch file.
|
|
Loading…
Reference in New Issue
Block a user