diff options
-rw-r--r-- | Makefile.am | 16 | ||||
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | src/Makefile-files | 6 |
3 files changed, 20 insertions, 4 deletions
diff --git a/Makefile.am b/Makefile.am index 3150b07..d83a4e1 100644 --- a/Makefile.am +++ b/Makefile.am @@ -3,7 +3,7 @@ BUILT_SOURCES = EXTRA_DIST = bin_SCRIPTS = man_MANS = -UPDATE_SOURCE_FILES = +UPLOAD_FILES = doc_DATA = dist_doc_DATA = @@ -19,3 +19,17 @@ if HAVE_NDIM_MAN2TXT test -s "$@.new" mv -f "$@.new" "$@" endif + +UPLOAD_DIR = upload-dir +UPLOAD_FILES += $(distdir).tar.bz2 +upload: src/git-amb src/git-amb.txt dist + rm -rf "$(UPLOAD_DIR)" + mkdir -p "$(UPLOAD_DIR)" + for f in $(UPLOAD_FILES); do \ + ln "$$(test -e "$$f" || echo "$(top_srcdir)/")$$f" "$(UPLOAD_DIR)/"; \ + done + rsync -avz --delete "$(UPLOAD_DIR)/" $(RSYNC_HOST):$(RSYNC_DIR)/$(PACKAGE_TARNAME)/ + rm -rf "$(UPLOAD_DIR)" + +clean-local: + rm -rf "$(UPLOAD_DIR)" diff --git a/configure.ac b/configure.ac index 4c6466d..77243b4 100644 --- a/configure.ac +++ b/configure.ac @@ -1,6 +1,6 @@ AC_PREREQ(2.61) AC_INIT([ndims git utilities], - [1.2], + [1.2.1], [hun@n-dimensional.de], [ndim-git-utils]) AC_CONFIG_SRCDIR([src/git-amb.1.in]) diff --git a/src/Makefile-files b/src/Makefile-files index fa28b4d..2fb281f 100644 --- a/src/Makefile-files +++ b/src/Makefile-files @@ -1,6 +1,7 @@ # -*- makefile -*- -bin_SCRIPTS += src/git-amb -EXTRA_DIST += src/git-amb +bin_SCRIPTS += src/git-amb +EXTRA_DIST += src/git-amb +UPLOAD_FILES += src/git-amb man_MANS += src/git-amb.1 EXTRA_DIST += src/git-amb.1.in @@ -8,4 +9,5 @@ EXTRA_DIST += src/git-amb.1.in if HAVE_NDIM_MAN2TXT dist_doc_DATA += src/git-amb.txt CLEANFILES += src/git-amb.txt +UPLOAD_FILES += src/git-amb.txt endif |