thorium-mirror/infra/set_exec.sh

98 lines
2.1 KiB
Bash
Raw Normal View History

2022-06-14 01:29:06 -04:00
#!/bin/bash
2023-04-13 07:36:05 -04:00
# Copyright (c) 2023 Alex313031.
2022-06-14 01:29:06 -04:00
YEL='\033[1;33m' # Yellow
2022-08-03 07:15:54 -04:00
CYA='\033[1;96m' # Cyan
2022-06-14 01:29:06 -04:00
RED='\033[1;31m' # Red
GRE='\033[1;32m' # Green
2022-08-03 07:15:54 -04:00
c0='\033[0m' # Reset Text
bold='\033[1m' # Bold Text
underline='\033[4m' # Underline Text
2022-06-14 01:29:06 -04:00
# Error handling
yell() { echo "$0: $*" >&2; }
die() { yell "$*"; exit 111; }
try() { "$@" || die "${RED}Failed $*"; }
printf "\n" &&
2022-06-25 12:56:03 -04:00
printf "${GRE}Script to set chmod +x on all other Thorium scripts.\n" &&
2022-06-25 15:50:46 -04:00
tput sgr0 &&
2022-06-25 12:56:03 -04:00
printf "${BOLD}\n" &&
2022-06-14 01:29:06 -04:00
# Set executable permissions
export NINJA_SUMMARIZE_BUILD=1 &&
2022-07-16 00:15:47 -04:00
sudo chmod -v +x depot_tools/autoninja &&
2022-06-14 01:29:06 -04:00
sudo chmod -v +x build.sh &&
sudo chmod -v +x build_dmg.sh &&
sudo chmod -v +x build_mac.sh &&
sudo chmod -v +x build_win.sh &&
sudo chmod -v +x check_avx.sh &&
sudo chmod -v +x clean.sh &&
sudo chmod -v +x setup.sh &&
2023-06-23 02:05:48 -04:00
sudo chmod -v +x package.sh &&
2022-06-14 01:29:06 -04:00
sudo chmod -v +x trunk.sh &&
2022-08-23 05:45:30 -04:00
sudo chmod -v +x reset_depot_tools.sh &&
2023-01-27 08:17:39 -03:00
sudo chmod -v +x VERSION.sh &&
2022-07-09 19:48:35 -04:00
sudo chmod -v +x infra/install_deps.sh &&
2022-06-25 12:38:33 -04:00
2023-06-23 02:05:48 -04:00
sudo chmod -v +x infra/build_dmg_cr.sh &&
2022-06-14 01:29:06 -04:00
sudo chmod -v +x infra/build_polly.sh &&
sudo chmod -v +x infra/DEBUG/build_debug_linux.sh &&
2022-07-26 22:31:39 -04:00
sudo chmod -v +x infra/DEBUG/build_debug_shell_linux.sh &&
sudo chmod -v +x infra/DEBUG/build_debug_shell_win.sh &&
2022-06-14 01:29:06 -04:00
sudo chmod -v +x infra/DEBUG/build_debug_win.sh &&
sudo chmod -v +x infra/DEBUG/Thorium_Debug_Shell.sh &&
sudo chmod -v +x logos/NEW/mac/gen/app/build_icns.sh &&
sudo chmod -v +x logos/NEW/mac/gen/document/build_icns.sh &&
2022-08-12 12:07:55 -04:00
sudo chmod -v +x portable/THORIUM-PORTABLE &&
2022-06-14 01:29:06 -04:00
2022-08-12 12:07:55 -04:00
sudo chmod -v +x portable/THORIUM-SHELL &&
2022-06-14 01:29:06 -04:00
2022-08-23 05:45:30 -04:00
sudo chmod -v +x portable/thorium-portable.desktop &&
2022-06-14 01:29:06 -04:00
sudo chmod -v +x portable/thorium-shell.desktop &&
2022-08-02 05:42:42 -04:00
sudo chmod -v +x portable/make_portable_linux.sh &&
sudo chmod -v +x portable/make_portable_win.sh &&
2022-06-17 18:24:03 -04:00
sudo chmod -v +x infra/APPIMAGE/pkg2appimage &&
sudo chmod -v +x infra/APPIMAGE/build_appimage.sh &&
2022-08-12 12:07:55 -04:00
sudo chmod -v +x pak_src/build.sh &&
2022-08-02 20:16:05 -04:00
2022-09-12 10:49:49 -03:00
sudo chmod -v +x src/build/vs_toolchain.py &&
sudo chmod -v +x src/tools/gn/bootstrap/bootstrap.py &&
sudo chmod -v +x src/tools/clang/scripts/build.py &&
2022-10-15 01:54:41 -03:00
sudo chmod -v +x other/Polly/setup_polly.sh &&
2022-06-14 01:29:06 -04:00
printf "${GRE}${bold}Scripts are ready!\n" &&
tput sgr0