From: Keith M. <kei...@us...> - 2013-08-27 19:01:41
|
Following up on: http://thread.gmane.org/gmane.comp.gnu.mingw.user/42738/focus=42745 On 26/08/13 23:05, Earnie Boyd wrote: > On Mon, Aug 26, 2013 at 5:49 PM, Keith Marshall wrote: >> On 26/08/13 22:35, Earnie Boyd wrote: >>> I uploaded using scp -r * from the mingw32/unpublished build >>> directory. If something is missing it would be because the make >>> process of the package didn't generate the file to publish. >> >> It would have generated it in common/unpublished; it's a common file, >> shared by mingw32 and msys. > > Yes, I missed that one. > >> I've been thinking, for a while now, that it would be useful to add a >> "make published" goal, which could collect and upload all unpublished >> files, from the entire tree, then remove the local unpublished file >> references. > > It might be worth it; I would have used it. The sticky mess being > needing to "create" the SF shell. If we use sftp, we shouldn't need to "create" an SF shell; something like (currently untested): FRS_CATALOGUE = $(FRS_CATALOGUE_HOST):$(FRS_CATALOGUE_PATH) FRS_CATALOGUE_HOST = frs.sourceforge.net FRS_CATALOGUE_PATH = /home/frs/project/mingw/$(FRS_CATALOGUE_NAME) FRS_CATALOGUE_NAME = Installer/mingw-get/catalogue published: rm -rf tmp; mkdir tmp cd tmp; $(LN_S) ../*/unpublished/* .; test "x`echo *`x" = 'x*x' \ && echo "Nothing to publish" \ || echo 'put *' | sftp $(FRS_USERNAME)@(FRS_CATALOGUE) rm -rf tmp */unpublished/* should get the job done, by running: make FRS_USERNAME=your_sf_username published or even just: make published if we arrange to capture FRS_USERNAME as a configuration time variable, and you define it appropriately at that time. -- Regards, Keith. |