Skip to content

Commit

Permalink
update rules
Browse files Browse the repository at this point in the history
  • Loading branch information
duiniuluantanqin committed Aug 30, 2023
1 parent cae3232 commit 27b2049
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
21 changes: 12 additions & 9 deletions trunk/packaging/deb.sh
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
# We can only build Debian packages, if the Debian build tools are installed
if [ \! -x /usr/bin/debuild ]; then
echo "Cannot find /usr/bin/debuild. Not building Debian packages." 1>&2
exit 0
echo "Cannot find /usr/bin/debuild. Not building Debian packages." 1>&2
exit 0
fi

# Double-check we're in the packages directory, just under rootdir
if [ \! -x ./configure ]; then
echo "Must run $0 in the 'trunk' directory, under the root directory." 1>&2
exit 0
fi

trap 'rm -rf '`pwd`/debian'; exit $?' EXIT SIGHUP SIGINT SIGTERM

rm -rf debian

# Debian has very specific requirements about the naming of build
# directories, and tar archives. It also wants to write all generated
# packages to the parent of the source directory. We accommodate these
# requirements by building directly from the tar file.

# This is one of those 'specific requirements': where the deb control files live
# Debian has very specific requirements about the naming of build directories
cp -a "packaging/deb" "debian"

# Now, we can call Debian's standard build tool
debuild -uc -us -tc -b

echo
echo "The Debian package build finished."
3 changes: 0 additions & 3 deletions trunk/packaging/deb/rules
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,3 @@ override_dh_auto_install:
mkdir -p $(DEBIAN_TMP)/usr/share/man/man8
cp doc/man/srs-server.8 $(DEBIAN_TMP)/usr/share/man/man8/

override_dh_auto_clean:
# make clean

0 comments on commit 27b2049

Please sign in to comment.