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 -N -r1.1 -r1.2 --- openacs-4/packages/acs-admin/www/apm/build-repository.tcl 4 Oct 2003 03:03:29 -0000 1.1 +++ openacs-4/packages/acs-admin/www/apm/build-repository.tcl 7 Nov 2003 11:36:47 -0000 1.2 @@ -2,67 +2,225 @@ Build package repository. } -# TODO: anonymous cvs export the packages with a given CVS tag corresponding to the channel -# (channel-5-0-oracle, channel-5-1-postgresql, etc.) +# TODO: Build repository in temp dir, then rename +#---------------------------------------------------------------------- +# Configuration Settings +#---------------------------------------------------------------------- +set cvs_command "cvs" +set cvs_root ":pserver:anonymous@openacs.org:/cvsroot" -##### -# -# Read all package .info files, building manifest file -# -##### -set channel "[db_type]-5-0" +set work_dir "[acs_root_dir]/repository-builder/" -set repository_dir "/web/lars/www/repository/$channel/" -set repository_url "http://lars.cph02.collaboraid.net/repository/$channel/" +set repository_dir "[acs_root_dir]/www/repository/" +set repository_url "http://openacs.org/repository/" -append manifest {} \n +set head_channel "5-0" -foreach spec_file [apm_scan_packages "[acs_root_dir]/packages"] { - with_catch errmsg { - array set version [apm_read_package_info_file $spec_file] + +#---------------------------------------------------------------------- +# Prepare output +#---------------------------------------------------------------------- + +ReturnHeaders +ns_write [ad_header "Building repository"] +ns_write DONE.\n" +