Skip to content

Commit

Permalink
tweak some wierd scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Furrior committed Feb 9, 2025
1 parent a16da90 commit 0777ff0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions DMCompiler/copy_standard.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@echo off
if not exist bin\Debug\net8.0\DMStandard mkdir bin\Debug\net8.0\DMStandard
xcopy DMStandard bin\Debug\net8.0\DMStandard /y /s /e
if not exist bin\Release\net8.0\DMStandard mkdir bin\Release\net8.0\DMStandard
xcopy DMStandard bin\Release\net8.0\DMStandard /y /s /e
if not exist bin\Debug\net9.0\DMStandard mkdir bin\Debug\net9.0\DMStandard
xcopy DMStandard bin\Debug\net9.0\DMStandard /y /s /e
if not exist bin\Release\net9.0\DMStandard mkdir bin\Release\net9.0\DMStandard
xcopy DMStandard bin\Release\net9.0\DMStandard /y /s /e
16 changes: 8 additions & 8 deletions DMCompiler/copy_standard.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ set -xe
SCRIPT=$(readlink -f "$0")
SCRIPTPATH=$(dirname "$SCRIPT")

if [ -d "$SCRIPTPATH/bin/Debug/net8.0/DMStandard" ]; then
cp -r $SCRIPTPATH/DMStandard $SCRIPTPATH/bin/Debug/net8.0/DMStandard
if [ -d "$SCRIPTPATH/bin/Debug/net9.0/DMStandard" ]; then
cp -r $SCRIPTPATH/DMStandard $SCRIPTPATH/bin/Debug/net9.0/DMStandard
else
mkdir -p $SCRIPTPATH/bin/Debug/net8.0/DMStandard
cp -r $SCRIPTPATH/DMStandard $SCRIPTPATH/bin/Debug/net8.0/DMStandard
mkdir -p $SCRIPTPATH/bin/Debug/net9.0/DMStandard
cp -r $SCRIPTPATH/DMStandard $SCRIPTPATH/bin/Debug/net9.0/DMStandard
fi

if [ -d "$SCRIPTPATH/bin/Release/net8.0/DMStandard" ]; then
cp -r $SCRIPTPATH/DMStandard $SCRIPTPATH/bin/Release/net8.0/DMStandard
if [ -d "$SCRIPTPATH/bin/Release/net9.0/DMStandard" ]; then
cp -r $SCRIPTPATH/DMStandard $SCRIPTPATH/bin/Release/net9.0/DMStandard
else
mkdir -p $SCRIPTPATH/bin/Release/net8.0/DMStandard
cp -r $SCRIPTPATH/DMStandard $SCRIPTPATH/bin/Release/net8.0/DMStandard
mkdir -p $SCRIPTPATH/bin/Release/net9.0/DMStandard
cp -r $SCRIPTPATH/DMStandard $SCRIPTPATH/bin/Release/net9.0/DMStandard
fi

0 comments on commit 0777ff0

Please sign in to comment.