Skip to content

Commit

Permalink
Fix paths for linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
TeoTwawki committed Apr 4, 2017
1 parent 7337797 commit 3726e16
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gensources.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
for line in `grep -e "Cl.*Include=\"\." win32/DSGame-server/*proj | tr -d " \"\" \"\/\>\r" | cut -c25- | sed 's:\\\:\/:g' `; do echo -n "${line} \\"; echo; done > game.sources
for line in `grep -e "Cl.*Include=\"\." win32/vcxproj/DSGame*proj | tr -d " \"\" \"\/\>\r" | cut -c25- | sed 's:\\\:\/:g' `; do echo -n "${line} \\"; echo; done > game.sources

echo SRC_COMMON = \\ > sources.am
cat game.sources | grep src/common/ | sed '$s/.$//' >> sources.am
Expand All @@ -9,13 +9,13 @@ echo SRC_MAP = \\ >> sources.am
cat game.sources | grep src/map/ | sed '$s/.$//' >> sources.am
echo "" >> sources.am

for line in `grep -e "Cl.*Include=\"\." win32/DSConnect-server/*proj | tr -d " \"\/\>\r" | cut -c25- | sed 's:\\\:\/:g' `; do echo -n "${line} \\"; echo; done > connect.sources
for line in `grep -e "Cl.*Include=\"\." win32/vcxproj/DSConnect*proj | tr -d " \"\/\>\r" | cut -c25- | sed 's:\\\:\/:g' `; do echo -n "${line} \\"; echo; done > connect.sources

echo SRC_LOGIN = \\ >> sources.am
cat connect.sources | grep src/login/ | sed '$s/.$//' >> sources.am
echo "" >> sources.am

for line in `grep -e "Cl.*Include=\"\." win32/DSSearch-server/*proj | tr -d " \"\/\>\r" | cut -c25- | sed 's:\\\:\/:g' `; do echo -n "${line} \\"; echo; done > search.sources
for line in `grep -e "Cl.*Include=\"\." win32/vcxproj/DSSearch*proj | tr -d " \"\/\>\r" | cut -c25- | sed 's:\\\:\/:g' `; do echo -n "${line} \\"; echo; done > search.sources

echo SRC_SEARCH_COMMON = \\ >> sources.am
cat search.sources | grep src/common/ | sed '$s/.$//' >> sources.am
Expand Down

0 comments on commit 3726e16

Please sign in to comment.