mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-23 03:57:48 +01:00
bash
bash
This commit is contained in:
@@ -13,13 +13,13 @@ echo "#define ${TEST_DEFINE} 1" > ${TEST_FILE}
|
||||
|
||||
replace=${REPLACE}
|
||||
# Messy map compile code
|
||||
if grep -q '#include\ \"maps\\tether\\tether.dm\"' $BASENAME.dme && replace; then
|
||||
if grep -q '#include[[:space:]]\"maps\\tether\\tether.dm\"' $BASENAME.dme && $replace; then
|
||||
sed -i 's/#include[[:space:]]\"maps\\tether\\tether.dm\"/#include\ \"maps\\${MAP}\\${MAP}.dm\"/g' $BASENAME.dme
|
||||
replace=false
|
||||
elif grep -q '#include\ \"maps\\stellardelight\\stellardelight.dm\"' $BASENAME.dme && replace; then
|
||||
elif grep -q '#include[[:space:]]\"maps\\stellardelight\\stellardelight.dm\"' $BASENAME.dme && $replace; then
|
||||
sed -i 's/#include[[:space:]]\"maps\\stellardelight\\stellardelight.dm\"/#include\ \"maps\\${MAP}\\${MAP}.dm\"/g' $BASENAME.dme
|
||||
replace=false
|
||||
elif grep -q '#include\ \"maps\\groundbase\\groundbase.dm\"' $BASENAME.dme && replace; then
|
||||
elif grep -q '#include[[:space:]]\"maps\\groundbase\\groundbase.dm\"' $BASENAME.dme && $replace; then
|
||||
sed -i 's/#include[[:space:]]\"maps\\groundbase\\groundbase.dm\"/#include\ \"maps\\${MAP}\\${MAP}.dm\"/g' $BASENAME.dme
|
||||
replace=false
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user