]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
gen_reprepro: take multiple dists on cmdline
authorSage Weil <sage@newdream.net>
Thu, 16 Jun 2011 20:55:27 +0000 (13:55 -0700)
committerSage Weil <sage@newdream.net>
Thu, 16 Jun 2011 20:55:27 +0000 (13:55 -0700)
gen_reprepro_conf.sh

index e1c5a7573159a86a00da2ceb0fba779ca3d5ee08..24363b67d0cd114131ebf17341c8b1421b32413d 100755 (executable)
@@ -2,15 +2,13 @@
 
 path="$1"
 comp="$2"
+shift
+shift
 
 if [ -e "$path/conf/dists" ]; then
     dists=`cat $path/conf/dists`
 else
-    if [ -e "$path/../../dists" ]; then
-       dists=`cat $path/../../dists`
-    else
-       dists="$3"
-    fi
+    dists="$*3"
 fi
 
 if [ -e "$path/conf/components" ]; then