summaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am16
1 files changed, 15 insertions, 1 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)"