Skip to content

Commit

Permalink
Fix install-xclib.sh to convert path style
Browse files Browse the repository at this point in the history
  • Loading branch information
yunkya2 committed Jan 14, 2024
1 parent 51f7b34 commit c05742f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/install-xclib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,12 @@ PATHCONV="s|\${TOOLCHAIN_PATH}|${ROOT_DIR}|"
INPUTCONV="s|\${INPUT_CHARSET}||"
SJISCONV="s|\${SJIS}||"

# MinGW ではフルパスを Windows 形式に変換
if [ "${MSYSTEM}" = "MINGW64" ]; then
ROOT_DIR_WIN=`cygpath -m "${ROOT_DIR}"`
PATHCONV="s|\${TOOLCHAIN_PATH}|${ROOT_DIR_WIN}|"
fi

# xc.specs 浮動小数点演算を FLOATn.X で実行する
FLOATCONV="s|\${FLOAT}|floatfnc|"
cat ${TMPL} | sed -e ${PATHCONV} -e ${FLOATCONV} -e ${INPUTCONV} -e ${SJISCONV} > ${SPECS_DIR}/xc.specs
Expand Down

0 comments on commit c05742f

Please sign in to comment.