diff options
author | onefang | 2021-09-01 16:02:48 +1000 |
---|---|---|
committer | onefang | 2021-09-01 16:02:48 +1000 |
commit | 4e1842b87bb2a6336e3e11deeb8b7407de1f4dce (patch) | |
tree | e3e9ce6a51847bf11c967f5e293a57f09f9a24d5 /src/sledjchisl | |
parent | Don't bother creating the wrong directory that the fllowing comment says git ... (diff) | |
download | opensim-SC-4e1842b87bb2a6336e3e11deeb8b7407de1f4dce.zip opensim-SC-4e1842b87bb2a6336e3e11deeb8b7407de1f4dce.tar.gz opensim-SC-4e1842b87bb2a6336e3e11deeb8b7407de1f4dce.tar.bz2 opensim-SC-4e1842b87bb2a6336e3e11deeb8b7407de1f4dce.tar.xz |
Strip some more boiler plate from the .shini files.
Diffstat (limited to 'src/sledjchisl')
-rw-r--r-- | src/sledjchisl/sledjchisl.c | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c index 4aeea41..8a686fa 100644 --- a/src/sledjchisl/sledjchisl.c +++ b/src/sledjchisl/sledjchisl.c | |||
@@ -1535,6 +1535,14 @@ simList *getSims() | |||
1535 | " -e '/LogFile.*/d'" | 1535 | " -e '/LogFile.*/d'" |
1536 | " -e '/StatsLogFile.*/d'" | 1536 | " -e '/StatsLogFile.*/d'" |
1537 | " -e '/ConsoleHistoryFile.*/d'" | 1537 | " -e '/ConsoleHistoryFile.*/d'" |
1538 | " -e '/InternalPort.*/d'" | ||
1539 | " -e '/MaxAgents.*/d'" | ||
1540 | " -e '/PhysicalPrimMax.*/d'" | ||
1541 | " -e '/NonphysicalPrimMax.*/d'" | ||
1542 | " -e '/ClampPrimSize.*/d'" | ||
1543 | " -e '/MaptileStaticUUID.*/d'" | ||
1544 | " -e '/\\[Network\\].*/d'" | ||
1545 | " -e '/http_listener_port.*/d'" | ||
1538 | " %s >%s", name, path, newPath); | 1546 | " %s >%s", name, path, newPath); |
1539 | 1547 | ||
1540 | V("Converting %s.ini -> %s", path, newPath); | 1548 | V("Converting %s.ini -> %s", path, newPath); |
@@ -1861,25 +1869,22 @@ void prepSims(simData *simd, char *sim, char *type, int count, int window, int p | |||
1861 | simd->portU = startPort + 3 + count * 2; | 1869 | simd->portU = startPort + 3 + count * 2; |
1862 | cmd = xmprintf("rm -fr %s/sim%d; mkdir -p %s/sim%d; sed -E" | 1870 | cmd = xmprintf("rm -fr %s/sim%d; mkdir -p %s/sim%d; sed -E" |
1863 | " -e 's@\\[Region\\]@" | 1871 | " -e 's@\\[Region\\]@" |
1864 | " paneID = \"\\%s\"\\n" | 1872 | " paneID = \"\\%s\"\\n\\n" |
1865 | "\\[Startup\\]\\n" | 1873 | "\\[Startup\\]\\n" |
1866 | " PIDFile = \"\\$\\{Paths\\|PIDPath\\}\\/\\$\\{Const\\|mysim\\}\\.pid\"\\n" | 1874 | " PIDFile = \"\\$\\{Paths\\|PIDPath\\}\\/\\$\\{Const\\|mysim\\}\\.pid\"\\n" |
1867 | " LogFile = \"\\$\\{Paths\\|LogPath\\}\\/OpenSim_\\$\\{Const\\|mysim\\}\\.log\"\\n" | 1875 | " LogFile = \"\\$\\{Paths\\|LogPath\\}\\/OpenSim_\\$\\{Const\\|mysim\\}\\.log\"\\n" |
1868 | " StatsLogFile = \"\\$\\{Paths\\|LogPath\\}\\/OpenSimStats_\\$\\{Const\\|mysim\\}\\.log\"\\n" | 1876 | " StatsLogFile = \"\\$\\{Paths\\|LogPath\\}\\/OpenSimStats_\\$\\{Const\\|mysim\\}\\.log\"\\n" |
1869 | " ConsoleHistoryFile = \"\\$\\{Paths\\|LogPath\\}\\/OpenSimConsoleHistory_\\$\\{Const\\|mysim\\}\\.txt\"\\n" | 1877 | " ConsoleHistoryFile = \"\\$\\{Paths\\|LogPath\\}\\/OpenSimConsoleHistory_\\$\\{Const\\|mysim\\}\\.txt\"\\n" |
1870 | "\\n\\[Region\\]@'" | 1878 | "\\n\\[Network\\]\\n" |
1871 | " -e 's/InternalPort[[:space:]]*=[[:space:]]*[[:digit:]]+/InternalPort = %d/'" | 1879 | " http_listener_port = %d\\n" |
1872 | " -e 's/InternalPort[[:space:]]*=[[:space:]]*\"[[:digit:]]+\"/InternalPort = %d/'" | 1880 | "\\n\\[Region\\]\\n" |
1873 | " -e 's/http_listener_port[[:space:]]*=[[:space:]]*[[:digit:]]+/http_listener_port = %d/'" | 1881 | " InternalPort = %d@'" |
1874 | " -e 's/http_listener_port[[:space:]]*=[[:space:]]*\"[[:digit:]]+\"/http_listener_port = %d/'" | ||
1875 | " %s >%s", | 1882 | " %s >%s", |
1876 | scTemp, count, | 1883 | scTemp, count, |
1877 | scTemp, count, | 1884 | scTemp, count, |
1878 | simd->paneID, | 1885 | simd->paneID, |
1879 | simd->portU, | ||
1880 | simd->portU, | ||
1881 | simd->portH, | ||
1882 | simd->portH, | 1886 | simd->portH, |
1887 | simd->portU, | ||
1883 | path, newPath); | 1888 | path, newPath); |
1884 | D("Writing .ini file %s with ports %d %d", newPath, simd->portH, simd->portU); | 1889 | D("Writing .ini file %s with ports %d %d", newPath, simd->portH, simd->portU); |
1885 | if (shellMeFail(cmd)) | 1890 | if (shellMeFail(cmd)) |