VirtualBox

Changeset 99046 in vbox for trunk/doc/manual


Ignore:
Timestamp:
Mar 19, 2023 12:19:03 PM (22 months ago)
Author:
vboxsync
Message:

manual/dita-ot-copy-exec.sh: Preserve executable bit when copying. bugref:10302

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/manual/dita-ot-copy-exec.sh

    r99045 r99046  
    9090    MY_DIRS_PAIRS=""
    9191    MY_FILES=""
     92    MY_EXEC_FILES=""
    9293    for MY_FILE in *;
    9394    do
     
    121122                    ;;
    122123                *)
    123                     MY_FILES="${MY_FILES} ${MY_FILE}"
     124                    if test -x "${MY_SRCTREE}/${MY_FILE}"; then
     125                        MY_EXEC_FILES="${MY_EXEC_FILES} ${MY_FILE}"
     126                    else
     127                        MY_FILES="${MY_FILES} ${MY_FILE}"
     128                    fi
    124129                    ;;
    125130            esac
     
    133138    if test -n "${MY_FILES}"; then
    134139        "${MY_INSTALL}" ${MY_DEBUG_INSTALL} --hard-link-files-when-possible -m644 -- ${MY_FILES} "${MY_DSTTREE}/"
     140    fi
     141    if test -n "${MY_EXEC_FILES}"; then
     142        "${MY_INSTALL}" ${MY_DEBUG_INSTALL} --hard-link-files-when-possible -m755 -- ${MY_EXEC_FILES} "${MY_DSTTREE}/"
    135143    fi
    136144
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette