OSDN Git Service

Merge pull request #2378 from habu1010/feature/refactor-monster-race-bounty
authorHabu <habu1010+github@gmail.com>
Sun, 6 Mar 2022 01:35:40 +0000 (10:35 +0900)
committerGitHub <noreply@github.com>
Sun, 6 Mar 2022 01:35:40 +0000 (10:35 +0900)
[Refactor] 賞金首関連のコードの整理

src/gcc-wrap

index 8662d0e..524e9f9 100755 (executable)
@@ -5,7 +5,7 @@ jp=$(grep "#define JP" autoconf.h | wc -l)
 if test $jp -eq 1; then
     # Prepare the various file paths.
     eval SRC_FILE=\${$#}
-    OBJ_FILE=$(dirname $SRC_FILE)/$(basename $SRC_FILE .cpp).o
+    OBJ_FILE=$(echo $SRC_FILE | sed -E 's/\..+$/\.o/')
     SRC_DIR=$(
         cd $(dirname $0)
         pwd