Publication of mingw-get package catalogues

Keith Marshall <[email protected]> Tue, 27 Aug 2013 11:00:47 +0100
Newsgroups gmane.comp.gnu.mingw.devel
Organization MinGW Project
Message-ID <[email protected]>
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.

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk