Skip to content

Commit

Permalink
Exclude rpm folder from Ubuntu source package
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisn committed Jul 8, 2023
1 parent da57534 commit 5562929
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions ubuntu/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,23 +48,32 @@ fixup() {
}

sourcepackage() {
tar --create --verbose --gzip --exclude=.git --exclude=.gitignore --exclude=.github --exclude=debian --exclude=Doxyfile --exclude=test --exclude=ubuntu --file ${TARBALL} ${SOURCE_DIR}
tar --create --verbose --gzip \
--exclude=.git \
--exclude=.gitignore \
--exclude=.github \
--exclude=debian \
--exclude=Doxyfile \
--exclude=rpm \
--exclude=test \
--exclude=ubuntu \
--file ${TARBALL} ${SOURCE_DIR}
}

deb() {
pushd ${SOURCE_DIR}
# -S: Build source package
# -sd: This option is passed by debuild to dpkg-buildpackage, which passes it
# through to dpkg-genchanges. It "forces the exclusion of the original
# source and includes only the diff".
#
# -sa: This option is passed by debuild to dpkg-buildpackage, which passes it
# through to dpkg-genchanges. It "forces the inclusion of the original
# source".


# audiowaveform_1.2.2-1trusty1.debian.tar.xz
# audiowaveform_1.2.2-1trusty1.dsc
# audiowaveform_1.2.2-1trusty1_source.build
# audiowaveform_1.2.2-1trusty1_source.changes
# -- Debian upload control file, produced by dpkg-genchanges

# debuild -S -sd
debuild -S -sa
popd
}
Expand Down

0 comments on commit 5562929

Please sign in to comment.