make-scripts-executable.sh
1 #!/bin/bash 2 3 # Exit on error 4 set -e 5 6 # Set colors for better output 7 GREEN="\033[0;32m" 8 BLUE="\033[0;34m" 9 YELLOW="\033[0;33m" 10 RED="\033[0;31m" 11 RESET="\033[0m" 12 13 echo -e "${BLUE}" 14 echo -e "╔════════════════════════════════════════════════════════════════╗" 15 echo -e "║ ║" 16 echo -e "║ Make Scripts Executable ║" 17 echo -e "║ ║" 18 echo -e "╚════════════════════════════════════════════════════════════════╝" 19 echo -e "${RESET}" 20 21 # Set directories 22 SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" 23 PROJECT_ROOT="$(cd "${SCRIPT_DIR}/.." && pwd)" 24 25 # Make all scripts in the scripts directory executable 26 echo -e "${YELLOW}Making scripts executable...${RESET}" 27 find "${SCRIPT_DIR}" -name "*.sh" -type f -exec chmod +x {} \; 28 29 # Make specific scripts executable 30 echo -e "${YELLOW}Making specific scripts executable...${RESET}" 31 chmod +x "${PROJECT_ROOT}/scripts/integrated-build.sh" 32 chmod +x "${PROJECT_ROOT}/scripts/fix-import-paths.sh" 33 chmod +x "${PROJECT_ROOT}/scripts/fix-cli-package.sh" 34 chmod +x "${PROJECT_ROOT}/scripts/deep-clean.sh" 35 chmod +x "${PROJECT_ROOT}/scripts/verify-binary.sh" 36 chmod +x "${PROJECT_ROOT}/scripts/consolidated-clean.sh" 37 chmod +x "${PROJECT_ROOT}/scripts/fix-package-structure.sh" 38 chmod +x "${PROJECT_ROOT}/scripts/update-dependencies.sh" 39 chmod +x "${PROJECT_ROOT}/scripts/simplified-integration-test.sh" 40 41 echo -e "${GREEN}All scripts are now executable.${RESET}" 42 echo -e "${GREEN}You can now run './scripts/integrated-build.sh' to build the project.${RESET}" 43 44 exit 0