Index: openacs-4/packages/acs-admin/www/apm/build-repository.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-admin/www/apm/Attic/build-repository.tcl,v diff -u -r1.8 -r1.9 --- openacs-4/packages/acs-admin/www/apm/build-repository.tcl 11 Feb 2004 16:28:05 -0000 1.8 +++ openacs-4/packages/acs-admin/www/apm/build-repository.tcl 11 Feb 2004 17:15:01 -0000 1.9 @@ -1,5 +1,8 @@ ad_page_contract { Build package repository. + + @cvs-id $Id$ + @author Lars Pind (lars@collaboraid.biz) } # TODO: Build repository in temp dir, then rename @@ -17,17 +20,24 @@ set repository_dir "[acs_root_dir]/www/repository/" set repository_url "http://openacs.org/repository/" +set channel_index_template "/packages/acs-admin/www/apm/repository-channel-index" +set index_template "/packages/acs-admin/www/apm/repository-index" + set exclude_package_list { cms cms-news-demo glossary site-wide-search spam library } set head_channel "5-1" +# Set this to 1 to only checkout sample packages -- useful for debugging and testing +set debug_p 1 + #---------------------------------------------------------------------- # Prepare output #---------------------------------------------------------------------- ReturnHeaders ns_write [ad_header "Building repository"] +ns_write "

Building OpenACS Package Repository


" ns_write \n" #---------------------------------------------------------------------- @@ -93,7 +103,7 @@ cd $work_dir foreach channel [lsort -decreasing [array names channel_tag]] { - ns_write "
  • Starting channel $channel with tag $channel_tag($channel)\n" + ns_write "

    Channel $channel using tag $channel_tag($channel)

    \n" } +ns_write "

    Finishing Repository

    DONE.\n" +ns_write "

    DONE

    \n" Index: openacs-4/packages/acs-admin/www/apm/repository-channel-index.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-admin/www/apm/repository-channel-index.adp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-admin/www/apm/repository-channel-index.adp 11 Feb 2004 17:15:01 -0000 1.1 @@ -0,0 +1,15 @@ +

    OpenACS Repository Channel @channel@

    + + + + + + + + + + + + +
    PackageDescription
    @packages.pretty_name@
     key: @packages.package_key@
    @packages.summary@
    @packages.description@
    + Index: openacs-4/packages/acs-admin/www/apm/repository-index.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-admin/www/apm/repository-index.adp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-admin/www/apm/repository-index.adp 11 Feb 2004 17:15:01 -0000 1.1 @@ -0,0 +1,10 @@ +

    OpenACS Package Repository

    + +

    Available channels.

    + + +