Diff of /Makefile.in [254f49] .. [b26313] Maximize Restore

  Switch to side-by-side view

--- a/Makefile.in
+++ b/Makefile.in
@@ -90,6 +90,42 @@
 #
 update-local-references: @mingw_ac_subdirs@
 
+# Approiately authenticated users may publish updated catalogues
+# via the SourceForge file release system.
+#
+FRS_CATALOGUE_HOST = frs.sourceforge.net
+FRS_CATALOGUE_ROOT = /home/frs/project/mingw
+FRS_CATALOGUE_PATH = $(FRS_CATALOGUE_ROOT)/Installer/mingw-get/catalogue
+
+FRS_CATALOGUE = $(FRS_CATALOGUE_HOST):$(FRS_CATALOGUE_PATH)
+
+published:
+	rm -rf tmp; mkdir tmp
+	cd tmp; @LN_S@ ../*/unpublished/* .
+	@test "x`cd tmp; echo *`x" = 'x*x' \
+	  && echo "NOTE: there are no catalogue files awaiting publication" \
+	  || $(MAKE_RECURSIVE) frs-publish
+	rm -rf tmp
+
+# Publication of updated catalogues, to the file release system,
+# requires an authorised SourceForge user name specification.
+#
+FRS_USERNAME = @FRS_USERNAME@
+MAKE_RECURSIVE = $(MAKE)@NO_PRINT_DIRECTORY@ PRIMARY_GOALS=$(MAKECMDGOALS)
+frs-username-check:
+	@test "x$(FRS_USERNAME)" = "xanonymous" && \
+	  { echo 'ERROR: "$(FRS_USERNAME)" is not a valid FRS_USERNAME'; \
+	    echo 'please try "make FRS_USERNAME=username $(PRIMARY_GOALS)"'; \
+	    exit 1; \
+	  } || true
+
+# For potentially valid user names, publication entails an sftp
+# upload of all staged catalogues, to the file release system.
+#
+frs-publish: frs-username-check
+	cd tmp; echo 'put *' | sftp $(FRS_USERNAME)@$(FRS_CATALOGUE)
+	rm -f */unpublished/*
+
 # The following goals may be specified, when building as a sub-project
 # of mingw-get-setup; pass each request to all designated subdirectories,
 # in each of which it will become a no-op.