Update of /cvsroot/fink/scripts/bindist
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6274

Modified Files:
        HOWTO bdnewrel 
Log Message:
pass architecture as an argument to bdnewrel


Index: HOWTO
===================================================================
RCS file: /cvsroot/fink/scripts/bindist/HOWTO,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- HOWTO       23 Jun 2005 20:04:17 -0000      1.4
+++ HOWTO       26 Mar 2006 23:51:23 -0000      1.5
@@ -74,10 +74,11 @@
 
 bdnewrel
   Prepares a new Fink binary release, by creating the appropriate file
-  structure. You call it with two parameters: the name of the new release,
-  and the name of the previous release (this is used to shared old .debs
-  without the need to recreate them). A typical invocation would be:
-    ./bdnewrel 0.4.0 0.3.2a
+  structure. You call it with three parameters: the name of the new release,
+  the name of the previous release (this is used to shared old .debs
+  without the need to recreate them), and the current architecture (powerpc
+  or i386). A typical invocation would be:
+    ./bdnewrel 0.4.0 0.3.2a powerpc
 
   After running this command, verify that all went right and that the tree
   it generated looks OK. You may also run the "bdindex" command just after

Index: bdnewrel
===================================================================
RCS file: /cvsroot/fink/scripts/bindist/bdnewrel,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- bdnewrel    15 Apr 2002 16:21:01 -0000      1.2
+++ bdnewrel    26 Mar 2006 23:51:23 -0000      1.3
@@ -18,35 +18,40 @@
   echo "No previous release given."
   exit 1
 fi
+arch=$3
+if [ \z "$arch" ]; then
+  echo "No architecture specified."
+  exit 1
+fi
 
 # create directories and Release files
 for dist in fink-$release fink-$release-updates ; do
   mkdir -p dists/$dist
   for tree in main crypto ; do
     mkdir -p "dists/$dist/$tree/finkinfo"
-    mkdir -p "dists/$dist/$tree/binary-darwin-powerpc"
+    mkdir -p "dists/$dist/$tree/binary-darwin-$arch"
     mkdir -p "dists/$dist/$tree/source"
     ( echo "Archive: $dist"
       echo "Component: $tree"
       echo "Origin: Fink"
       echo "Label: Fink"
-      echo "Architecture: darwin-powerpc"
-    ) | sed 's/fink-//' > "dists/$dist/$tree/binary-darwin-powerpc/Release"
+      echo "Architecture: darwin-$arch"
+    ) | sed 's/fink-//' > "dists/$dist/$tree/binary-darwin-$arch/Release"
   done
 done
 
 # symlink old packages in the main tree (not updates, not crypto)
 from="fink-$prevrel/main"
 to="fink-$release/main"
-cd "$BDBASE/dists/$from/binary-darwin-powerpc"
+cd "$BDBASE/dists/$from/binary-darwin-$arch"
 
 for file in * ; do
   if [ -d "$file" ]; then
-    mkdir -p "$BDBASE/dists/$to/binary-darwin-powerpc/$file"
+    mkdir -p "$BDBASE/dists/$to/binary-darwin-$arch/$file"
   fi
 done
 for file in */*.deb ; do
-  ln -s "../../../../$from/binary-darwin-powerpc/$file" 
"../../../$to/binary-darwin-powerpc/$file"
+  ln -s "../../../../$from/binary-darwin-$arch/$file" 
"../../../$to/binary-darwin-$arch/$file"
 done
 
 # Update "current" with the new version



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Fink-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to