Implement 'make dist'
Originally committed to SVN as r6299.
This commit is contained in:
parent
3ed84ba70d
commit
4055100734
3 changed files with 13 additions and 5 deletions
|
@ -41,6 +41,7 @@ LIB_SHARED_LINK_OSX = -dynamiclib -Wl,-undefined -Wl,dynamic_lookup -compatibili
|
||||||
AEGISUB_COMMAND = @AEGISUB_COMMAND@
|
AEGISUB_COMMAND = @AEGISUB_COMMAND@
|
||||||
AEGISUB_VERSION_DATA = @AEGISUB_VERSION_DATA@
|
AEGISUB_VERSION_DATA = @AEGISUB_VERSION_DATA@
|
||||||
BUILD_DATE = @BUILD_DATE@
|
BUILD_DATE = @BUILD_DATE@
|
||||||
|
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||||
PACKAGE_DEBUG = @PACKAGE_DEBUG@
|
PACKAGE_DEBUG = @PACKAGE_DEBUG@
|
||||||
SVN_REVISION = @SVN_REVISION@
|
SVN_REVISION = @SVN_REVISION@
|
||||||
# OS X
|
# OS X
|
||||||
|
@ -151,3 +152,5 @@ BIN_MKDIR = mkdir
|
||||||
BIN_MKDIR_P = mkdir -p
|
BIN_MKDIR_P = mkdir -p
|
||||||
BIN_ECHO = echo
|
BIN_ECHO = echo
|
||||||
BIN_TOUCH = touch
|
BIN_TOUCH = touch
|
||||||
|
BIN_TAR = tar
|
||||||
|
BIN_GZIP = gzip
|
||||||
|
|
|
@ -108,12 +108,16 @@ endif
|
||||||
##############
|
##############
|
||||||
# DISTRIBUTION
|
# DISTRIBUTION
|
||||||
##############
|
##############
|
||||||
|
dist: distdir
|
||||||
|
@$(BIN_TAR) chf - --posix "$(PACKAGE_TARNAME)" | $(BIN_GZIP) -c > "$(PACKAGE_TARNAME).tar.gz"
|
||||||
|
@rm -rf $(PACKAGE_TARNAME)
|
||||||
|
|
||||||
distdir:
|
distdir:
|
||||||
@if ! test -f packages/distfile/distfile.sh; then \
|
@if ! test -f packages/distfile/distfile.sh; then \
|
||||||
echo "Please run this from the parent directory."; \
|
echo "Please run this from the parent directory."; \
|
||||||
exit 1; \
|
exit 1; \
|
||||||
fi
|
fi
|
||||||
${SHELL} packages/distfile/distfile.sh $(MAKE) aegisub-pkg
|
@${SHELL} packages/distfile/distfile.sh $(MAKE) $(PACKAGE_TARNAME)
|
||||||
|
|
||||||
distfiles: $(SUBDIRS)
|
distfiles: $(SUBDIRS)
|
||||||
@for i in $(SRC) $(HEADER) $(PO) $(EXTRA_DIST); do \
|
@for i in $(SRC) $(HEADER) $(PO) $(EXTRA_DIST); do \
|
||||||
|
|
|
@ -177,16 +177,17 @@ AC_DEFINE_UNQUOTED([BUILD_SVN_REVISION], [$SVN_REVISION], [SVN Revision number,
|
||||||
# Release information.
|
# Release information.
|
||||||
AS_IF([test "aegisub_FINAL_RELEASE" = "1"], [
|
AS_IF([test "aegisub_FINAL_RELEASE" = "1"], [
|
||||||
AC_DEFINE([FINAL_RELEASE], [aegisub_FINAL_RELEASE], [This is only set to 1 for a RELEASE VERSION.])
|
AC_DEFINE([FINAL_RELEASE], [aegisub_FINAL_RELEASE], [This is only set to 1 for a RELEASE VERSION.])
|
||||||
BUNDLE_STRING="Aegisub"
|
BUNDLE_STRING="${PACKAGE_NAME}"
|
||||||
DMG_STRING="Aegisub-${PACKAGE_VERSION}-${arch_bundle}"
|
DMG_STRING="${PACKAGE_NAME}-${PACKAGE_VERSION}-${arch_bundle}"
|
||||||
], [
|
], [
|
||||||
PACKAGE_STRING="${PACKAGE_STRING}-dev-r${SVN_REVISION}"
|
PACKAGE_STRING="${PACKAGE_STRING}-dev-r${SVN_REVISION}"
|
||||||
PACKAGE_VERSION="${PACKAGE_VERSION}-dev-r${SVN_REVISION}"
|
PACKAGE_VERSION="${PACKAGE_VERSION}-dev-r${SVN_REVISION}"
|
||||||
VERSION="${VERSION}-dev-r${SVN_REVISION}"
|
VERSION="${VERSION}-dev-r${SVN_REVISION}"
|
||||||
|
|
||||||
BUNDLE_STRING="Aegisub-${PACKAGE_VERSION}"
|
BUNDLE_STRING="${PACKAGE_NAME}-${PACKAGE_VERSION}"
|
||||||
DMG_STRING="Aegisub-${PACKAGE_VERSION}-${arch_bundle}"
|
DMG_STRING="${PACKAGE_NAME}-${PACKAGE_VERSION}-${arch_bundle}"
|
||||||
])
|
])
|
||||||
|
PACKAGE_TARNAME="${PACKAGE_TARNAME}-${PACKAGE_VERSION}"
|
||||||
|
|
||||||
# Used in version.cpp
|
# Used in version.cpp
|
||||||
AC_MSG_CHECKING([for build date])
|
AC_MSG_CHECKING([for build date])
|
||||||
|
|
Loading…
Reference in a new issue