go.ketch.com/lib/goja_nodejs@v0.0.1/scripts/genresources.sh (about)

     1  #!/usr/bin/env sh
     2  
     3  # Code generated by shipbuilder init 1.21.2. DO NOT EDIT.
     4  
     5  if [ ! -f "./scripts/check.sh" ]; then
     6    cd $(command dirname -- "$(command readlink -f "$(command -v -- "$0")")")/..
     7  fi
     8  
     9  . ./scripts/check.sh
    10  
    11  resources=$(find pkg -name \*.resource.yaml)
    12  if [ -n "$resources" ]; then
    13    check shipbuilder
    14  
    15    set -e
    16  
    17    echo "Generating resources..."
    18  
    19    for i in $resources; do
    20      d=$(dirname "$i")
    21      f=$(basename "$i" .resource.yaml)
    22  
    23      echo "* $i -> $d"
    24      $shipbuilder gen-resource -o "$d" "$i"
    25    done
    26  fi