Skip to content

Commit

Permalink
Add srctarball target to build a source tarball in the build directory.
Browse files Browse the repository at this point in the history
Add srctarball target to top level Makefile.am to build a source
tarball in the build directory.
It uses git archive to produce a tarball of HEAD.

Signed-off-by: Mark Grant <[email protected]>
  • Loading branch information
m-grant-prg committed Apr 7, 2018
1 parent 7465688 commit a3bcd8f
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#########################################################################
# #
# Script ID: ./Makefile.am #
# Author: Copyright (C) 2014-2017 Mark Grant #
# Author: Copyright (C) 2014-2018 Mark Grant #
# #
# Released under the GPLv3 only. #
# SPDX-License-Identifier: GPL-3.0 #
Expand All @@ -27,8 +27,20 @@
# 01/12/2017 MG 1.0.5 Add SPDX license tags to source files. #
# 09/02/2018 MG 1.0.6 Shorten directory names to reduce #
# overall path length. #
# 07/04/2018 MG 1.0.7 Add srctarball target to build a source #
# tarball in the build directory. Uses #
# git archive to archive HEAD. #
# #
#########################################################################


SUBDIRS = src/prg/bash src/man/8

srctarball:
@cwd="$${PWD}" && \
cd @srcdir@ && \
git archive --format=tar.gz \
--prefix=@PACKAGE_TARNAME@-@PACKAGE_VERSION@/ \
--output=$${cwd}/@PACKAGE_TARNAME@-@[email protected] \
HEAD && \
cd -

0 comments on commit a3bcd8f

Please sign in to comment.