Commit 0ba557f6 authored by Juergen Weigert's avatar Juergen Weigert

build scripts update. names fixed, description added.

parent 4518a985
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.
...@@ -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; }
...@@ -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 contents ..."
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment