summaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorHans Ulrich Niedermann <hun@n-dimensional.de>2007-11-02 19:09:55 +0100
committerHans Ulrich Niedermann <hun@n-dimensional.de>2007-11-02 19:09:55 +0100
commitfbf110cec511ed304a160932bf89c00c0b49b912 (patch)
tree9ac7d25c59e07d0511ed4df7a8cec919c22c2d48 /Makefile.am
parenta6d206bc229ebeb10e12960cd96a2f289db3f2cd (diff)
downloadndim-git-utils-1.2.1.tar.gz
ndim-git-utils-1.2.1.tar.xz
ndim-git-utils-1.2.1.zip
Easy uploading to public webserverv1.2.1
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)"