[csw-devel] SF.net SVN: opencsw:[517] buildfarm/bin/generate-unstable

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Fri Sep 2 02:44:35 CEST 2011


Revision: 517
          http://opencsw.svn.sourceforge.net/opencsw/?rev=517&view=rev
Author:   dmichelsen
Date:     2011-09-02 00:44:35 +0000 (Fri, 02 Sep 2011)
Log Message:
-----------
generate-unstable: Parametrize the mirror root

Modified Paths:
--------------
    buildfarm/bin/generate-unstable

Modified: buildfarm/bin/generate-unstable
===================================================================
--- buildfarm/bin/generate-unstable	2011-08-27 00:23:21 UTC (rev 516)
+++ buildfarm/bin/generate-unstable	2011-09-02 00:44:35 UTC (rev 517)
@@ -13,22 +13,24 @@
 
 declare -r catalogs=( "unstable" "dublin" )
 declare -r os_rels=( "5.9" "5.10" "5.11" )
+declare -r mirror_name="opencsw-future"
+declare -r mirror_root="/home/mirror/${mirror_name}"
 
 for catalog in "${catalogs[@]}"
 do
   /home/web/bin/gar/bin/pkgdb \
       gen-cat --catalog-release "${catalog}" \
-      /home/mirror/opencsw-future/allpkgs \
-      /home/mirror/opencsw-future
+      ${mirror_root}/allpkgs \
+      ${mirror_root}
 
-  pushd "/home/mirror/opencsw-future/${catalog}"
+  pushd "${mirror_root}/${catalog}"
   for arch in i386 sparc; do
   	mkdir -p "${arch}"
     pushd "${arch}"
     for osrel in "${os_rels[@]}"; do
     	mkdir -p "${osrel}"
       pushd "${osrel}"
-      /home/web/bin/generate-catalog "opencsw-future/${catalog}/${arch}/${osrel}"
+      /home/web/bin/generate-catalog "${mirror_name}/${catalog}/${arch}/${osrel}"
       popd
     done
     popd

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list