go.ketch.com/lib/goja@v0.0.1/scripts/generate.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  if [ -f "./features/shipbuilder/.env" ]; then
    10    . ./features/shipbuilder/.env
    11  fi
    12  
    13  if [ -z "$*" ]; then
    14    what="$shipbuilder_generate"
    15  else
    16    what="$*"
    17  fi
    18  
    19  for i in $what; do
    20    if [ -f "./scripts/gen$i.sh" ]; then
    21      . "./scripts/gen$i.sh"
    22    fi
    23  done