Software: Apache. PHP/5.6.40-67+ubuntu20.04.1+deb.sury.org+1 uname -a: Linux hosting1.erectacloud.it 5.4.0-182-generic #202-Ubuntu SMP Fri Apr 26 12:29:36 UTC uid=5229(web473) gid=5117(client172) groups=5117(client172),5002(sshusers) Safe-mode: OFF (not secure) /var/www/clients/client172/web473/web/aps/xcrud/plugins/bootstrap-4.5.0/build/ drwxr-xr-x |
Viewing file: ship.sh (2.01 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) | #!/usr/bin/env bash set -e # # Usage # --------------- # 1. Clone second version of Bootstrap in sibling directory named `bs-docs`. # 2. Within `bs-docs` copy, switch to `gh-pages` branch. # 3. Pull latest, re-bundle, re-npm. # 4. Run script. red=$'\e[1;31m' green=$'\e[1;32m' #blue=$'\e[1;34m' magenta=$'\e[1;35m' #cyan=$'\e[1;36m' end=$'\e[0m' # Get current version from package.json current_version=$(node -p "require('./package.json').version") if [[ $# -lt 1 ]]; then printf "\n%s⚠️ Shipping aborted. You must specify a version.\n%s" "$red" "$end" exit 1 fi # Pulling latest changes, just to be sure printf "\n%s=======================================================%s" "$magenta" "$end" printf "\n%sPulling latest changes...%s" "$magenta" "$end" printf "\n%s=======================================================\n\n%s" "$magenta" "$end" git pull origin v4-dev # Update version number printf "\n%s=======================================================%s" "$magenta" "$end" printf "\n%sUpdating version number...%s" "$magenta" "$end" printf "\n%s=======================================================\n%s" "$magenta" "$end" npm run release-version "$current_version" "$1" # Build release printf "\n%s=======================================================%s" "$magenta" "$end" printf "\n%sBuilding release...%s" "$magenta" "$end" printf "\n%s=======================================================\n%s" "$magenta" "$end" npm run release # Copy the contents of the built docs site over to `bs-docs` repo printf "\n%s=======================================================%s" "$magenta" "$end" printf "\n%sCopy it over...%s" "$magenta" "$end" printf "\n%s=======================================================\n%s" "$magenta" "$end" cp -rf _gh_pages/. ../bs-docs/ printf "\nDone!\n" printf "\n%s=======================================================%s" "$green" "$end" printf "\n%sSuccess, $1 is ready to review and publish.%s" "$green" "$end" printf "\n%s=======================================================\n\n%s" "$green" "$end" |
:: Command execute :: | |
--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.008 ]-- |