diff options
Diffstat (limited to 'rep-update')
-rwxr-xr-x | rep-update | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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 <toolchain>] [-e <subdir>] <dir> [<bpkg-options>] # # This script runs the rep-create command for every first-level subdirectory -# of <dir> that doesn't start with '.' and contains the 'repositories' file, -# unless <dir> itself contains 'repositories'. +# of <dir> that doesn't start with '.' and contains the repositories.manifest +# file, unless <dir> itself contains repositories.manifest. # # -e <subdir> # 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 |