diff options
| author | Sam Varshavchik | 2022-03-13 21:10:44 -0400 |
|---|---|---|
| committer | Sam Varshavchik | 2022-04-16 19:59:47 -0400 |
| commit | 867cce4e32e7e64651887664724aa7f06566cb4b (patch) | |
| tree | 8cd198902ea0c51ca955e1bc60d4756008c74818 /unicode/courier-debuild.in | |
| parent | a86c03a704830534340347f0f4438e32fdb8ea50 (diff) | |
| download | courier-libs-867cce4e32e7e64651887664724aa7f06566cb4b.tar.bz2 | |
all: scripts to create installable *.deb packages.
Diffstat (limited to 'unicode/courier-debuild.in')
| -rw-r--r-- | unicode/courier-debuild.in | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/unicode/courier-debuild.in b/unicode/courier-debuild.in new file mode 100644 index 0000000..010cced --- /dev/null +++ b/unicode/courier-debuild.in @@ -0,0 +1,54 @@ +#! /bin/bash +# +# Wrapper script for running debuild to build this package. +# +# export DEBGCC=10 +# +# Set DEBGCC to use a non-default version of gcc + +set -e +shopt -s extglob + +f=`cd .. && ls @PACKAGE@-@VERSION@.tar* | sed -n 1p` + +rm -rf deb +mkdir deb +cp ../$f deb/`echo $f | sed 's/@PACKAGE@-/@PACKAGE@_/;s/.tar./.orig.tar./'` +cd deb +tar xf * +cd @PACKAGE@-@VERSION@ +cp -pr packaging/debian . + +if test "$DEBGCC" = "" +then + DEBGCC=`readlink /usr/bin/gcc | sed 's/gcc-//'` + + case "$DEBGCC" in + [1-9]*([0-9])) + ;; + *) + echo "Cannot determine gcc version" + exit 1 + ;; + esac +fi + +DEBGCC="-$DEBGCC" + +for f in debian/rules debian/control +do + sed " +s/%SOVERSION%/@SOVERSION@/g +s/%DEBGCC%/$DEBGCC/g +" <$f >$f.tmp + +mv $f.tmp $f +done + +mv debian/libcourier-unicode.install debian/libcourier-unicode@SOVERSION@.install +chmod +x debian/rules + +debuild "$@" +cd .. +rm -rf @PACKAGE@-@VERSION@ +echo "Built packages in the deb subdirectory." |
