Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
I
inkscape-centerline-trace
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
3dmodeling
inkscape-centerline-trace
Commits
0ba557f6
Commit
0ba557f6
authored
May 15, 2016
by
Juergen Weigert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build scripts update. names fixed, description added.
parent
4518a985
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
12 deletions
+25
-12
description-pak
distribute/deb/description-pak
+7
-1
dist.sh
distribute/deb/dist.sh
+13
-8
distribute.sh
distribute/distribute.sh
+5
-3
No files found.
distribute/deb/description-pak
View file @
0ba557f6
Package created with checkinstall 1.6.2
A bitmap vectorizer that can trace along the centerline of a stroke. The
builtin inkscape 'trace bitmap' can only trace edges, thus resulting in double
lines for most basic use cases.
Written with python-Pillow. It uses 'autotrace -centerline' and an optimal
threshold to vectorize a pixel image. See centerline-tracing.svg for an
illustration of the idea.
distribute/deb/dist.sh
View file @
0ba557f6
...
@@ -3,14 +3,19 @@
...
@@ -3,14 +3,19 @@
name
=
$1
name
=
$1
vers
=
$2
vers
=
$2
out
=
$3
url
=
http://github.com/fablabnbg/inkscape-centerline-trace
test
-z
"
$out
"
&&
out
=
.
requires
=
"bash, python3-PIL|python-PIL, autotrace"
[
-d
tmp
]
&&
rm
-rf
tmp
tmp
=
../out
mkdir
tmp
[
-d
$tmp
]
&&
rm
-rf
$tmp
/
*
.deb
mkdir
$tmp
cd
files
cd
files
fakeroot checkinstall
--fstrans
--reset-uid
--type
debian
--install
=
no
-y
--pkgname
$name
--pkgversion
$vers
--arch
all
--pkglicense
LGPL
--pkggroup
other
--pkgsource
"http://github.com/fablabnbg/inkscape-chain-paths"
--pkgaltsource
"http://fablab-nuernberg.de"
--pakdir
tmp/
--maintainer
"'Juergen Weigert (juewei@fabmail.org)'"
--requires
"bash"
make
install
-e
PREFIX
=
/usr
>
/dev/null
||
{
echo
"error"
;
exit
1
;
}
fakeroot checkinstall
--fstrans
--reset-uid
--type
debian
\
mkdir
-p
$out
--install
=
no
-y
--pkgname
$name
--pkgversion
$vers
--arch
all
\
mv
tmp/
*
.deb
$out
--pkglicense
LGPL
--pkggroup
other
--pakdir
../
$tmp
--pkgsource
$url
\
rm
-rf
tmp
--pkgaltsource
"http://fablab-nuernberg.de"
\
--maintainer
"'Juergen Weigert (juewei@fabmail.org)'"
\
--requires
"
$requires
"
make
install
\
-e
PREFIX
=
/usr
>
/dev/null
||
{
echo
"error"
;
exit
1
;
}
distribute/distribute.sh
View file @
0ba557f6
...
@@ -2,16 +2,17 @@
...
@@ -2,16 +2,17 @@
echo
"Determining Version:"
echo
"Determining Version:"
VERSION
=
$(
sed
-ne
's@.*version\s\([a-z0-9\.]*\).*@\1@pi'
../centerline-trace.inx
)
VERSION
=
$(
sed
-ne
's@.*version\s\([a-z0-9\.]*\).*@\1@pi'
../centerline-trace.inx
)
echo
"Version is:
\"
$VERSION
\"
"
echo
"Version is:
\"
$VERSION
\"
"
name
=
centerline-trace
name
=
inkscape-
centerline-trace
if
[
-d
$name
]
if
[
-d
$name
]
then
then
echo
"Removing leftover files"
echo
"Removing leftover files"
rm
-rf
$name
rm
-rf
$name
fi
fi
echo
"Copying content..."
echo
"Copying content
s
..."
mkdir
$name
mkdir
$name
cp
../README.md
$name
/README
cp
../README.md
$name
/README
cp
../LICENSE
*
$name
/
cp
../LICENSE
*
$name
/
cp
../centerline-trace-poster.svg
$name
/
cp
../
*
.py ../
*
.inx ../Makefile
$name
/
cp
../
*
.py ../
*
.inx ../Makefile
$name
/
...
@@ -22,7 +23,8 @@ read answer
...
@@ -22,7 +23,8 @@ read answer
if
[
"
$answer
"
!=
"n"
]
if
[
"
$answer
"
!=
"n"
]
then
then
cp
-a
$name
/
*
deb/files
cp
-a
$name
/
*
deb/files
(
cd
deb
&&
sh ./dist.sh
$name
$VERSION
..
)
(
cd
deb
&&
sh ./dist.sh
$name
$VERSION
)
fi
fi
rm
-rf
$name
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment