From 2e9a698a0efdfe179cea557d7a204cdfaaca1b43 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 5 Mar 2018 18:53:28 +0200 Subject: Adjust to renamed repository manifest files --- rep-update | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'rep-update') diff --git a/rep-update b/rep-update index cb40441..e66baf5 100755 --- a/rep-update +++ b/rep-update @@ -1,12 +1,12 @@ #! /usr/bin/env bash -# Update (or create) bpkg 'packages' files in repository. +# Update (or create) bpkg packages.manifest files in repository. # # Usage: update [-t ] [-e ] [] # # This script runs the rep-create command for every first-level subdirectory -# of that doesn't start with '.' and contains the 'repositories' file, -# unless itself contains 'repositories'. +# of that doesn't start with '.' and contains the repositories.manifest +# file, unless itself contains repositories.manifest. # # -e # Exclude the specified sub-directory. Currently only one directory can @@ -60,13 +60,13 @@ else fi fi -if [ -f "$dir/repositories" ]; then +if [ -f "$dir/repositories.manifest" ]; then sub=$dir else sub=`find $dir -mindepth 1 -maxdepth 1 -type d -name '[^.]*'` if [ -z "$sub" ]; then - error "no 'repositories' file or subdirectories in $dir/" + error "no repositories.manifest file or subdirectories in $dir/" fi fi @@ -76,9 +76,9 @@ for d in $sub; do continue fi - if [ -f "$d/repositories" ]; then + if [ -f "$d/repositories.manifest" ]; then $bpkg rep-create "$@" $d else - echo "no 'repositories' file in $d/, skipping" 1>&2 + echo "no repositories.manifest file in $d/, skipping" 1>&2 fi done -- cgit v1.1