Skip to content

Commit 07ea4f6

Browse files
Generalized deb package generation for easier maintenance
1 parent d7b838c commit 07ea4f6

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

COPYRIGHT

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
klayout is packaged by Peter C.S. Scholtens <[email protected]>
22
and Matthias Köfferlein <[email protected]>
3-
and was obtained from https://www.klayout.org/downloads/source/klayout-0.27.4.tar.gz
3+
and was obtained from https://www.klayout.org/downloads/source/klayout-%VERSION%.tar.gz
44

55
Authors:
66
Matthias Köfferlein

Changelog.Debian.templ

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
klayout (%VERSION%) unstable; urgency=low
2+
3+
* New features and bugfixes
4+
- See changelog
5+
6+
-- Matthias Köfferlein <matthias@koefferlein.de> %NOW%
7+

scripts/makedeb.sh

+3-4
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ version="${KLAYOUT_VERSION//-*/}"
3939
exe_name="klayout"
4040
bits=64
4141

42-
4342
umask 0022
4443

4544
echo "Checking $bits installation"
@@ -101,8 +100,8 @@ mkdir -p makedeb-tmp/${bindir}
101100
cp etc/klayout.desktop makedeb-tmp/${sharedir}/applications
102101
cp etc/logo.png makedeb-tmp/${sharedir}/pixmaps/klayout.png
103102
cp Changelog makedeb-tmp/${sharedir}/doc/klayout/changelog
104-
cp Changelog.Debian makedeb-tmp/${sharedir}/doc/klayout/changelog.Debian
105-
cp COPYRIGHT makedeb-tmp/${sharedir}/doc/klayout/copyright
103+
sed "s/%NOW%/$now/;s/%VERSION%/$version/" <Changelog.Debian.templ >makedeb-tmp/${sharedir}/doc/klayout/changelog.Debian
104+
sed "s/%VERSION%/$version/" <COPYRIGHT >makedeb-tmp/${sharedir}/doc/klayout/copyright
106105

107106
cp -pd $bininstdir/strm* makedeb-tmp/${bindir}
108107
cp -pd $bininstdir/klayout makedeb-tmp/${bindir}
@@ -115,7 +114,7 @@ for d in db tl rdb; do
115114
mkdir -p makedeb-tmp/${pylibdir}/$d
116115
cp -pd $bininstdir/pymod/klayout/$d/*py makedeb-tmp/${pylibdir}/$d
117116
done
118-
sed "s/%VERSION%/${KLAYOUT_VERSION//-*/}/g" <scripts/klayout.egg-info >makedeb-tmp/${distpackdir}/klayout.egg-info
117+
sed "s/%VERSION%/$version/g" <scripts/klayout.egg-info >makedeb-tmp/${distpackdir}/klayout.egg-info
119118

120119
cd makedeb-tmp
121120

0 commit comments

Comments
 (0)