VirtualBox

Changeset 39401 in vbox


Ignore:
Timestamp:
Nov 23, 2011 4:24:26 PM (13 years ago)
Author:
vboxsync
Message:

fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/bin/gen-slickedit-workspace.sh

    r39397 r39401  
    383383    for subdir in "${MY_SLICKDIR_}/"*;
    384384    do
    385         if test -f "${subdir}/${MY_USERCPP_H}"; then
     385        if test -f "${subdir}/${MY_USERCPP_H}"  -o  -f "${subdir}/vslick.stu"; then
    386386            MY_CUR_VER_NUM=0
    387387            MY_CUR_VER=`echo "${subdir}" | ${MY_SED} -e 's,^.*/,,g'`
     
    414414    MY_SLICKDIR="${MY_SLICKDIR_}/${MY_VER}"
    415415    MY_USERCPP_H_FULL="${MY_SLICKDIR}/${MY_USERCPP_H}"
    416     if test -f "${MY_USERCPP_H_FULL}"; then
     416    if test -d "${MY_SLICKDIR}"; then
    417417        echo "Found SlickEdit v${MY_VER} preprocessor file: ${MY_USERCPP_H_FULL}"
    418418    else
     
    623623
    624624    # Install it.
    625     if test -n "${MY_USERCPP_H_FULL}"  -a  -f "${MY_USERCPP_H_FULL}"; then
    626        # ${MY_MV} -vf "${MY_USERCPP_H_FULL}" "${MY_USERCPP_H_FULL}.bak"
    627        # ${MY_CP} -v "${MY_FILE}" "${MY_USERCPP_H_FULL}"
    628         echo "Updated the SlickEdit preprocessor file. (Previous version renamed to .bak.)"
     625    if test -n "${MY_USERCPP_H_FULL}"  -a  -d "${MY_SLICKDIR}"; then
     626        if test -f "${MY_USERCPP_H_FULL}"; then
     627            ${MY_MV} -vf "${MY_USERCPP_H_FULL}" "${MY_USERCPP_H_FULL}.bak"
     628
     629            ${MY_CP} -v "${MY_FILE}" "${MY_USERCPP_H_FULL}"
     630            echo "Updated the SlickEdit preprocessor file. (Previous version renamed to .bak.)"
     631        else
     632            echo "Created the SlickEdit preprocessor file."
     633        fi
    629634    fi
    630635}
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