remove leading period from Windows template file

This commit is contained in:
nhmall
2024-03-31 13:53:48 -04:00
parent 44575ab347
commit e00e423262
6 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -80,7 +80,7 @@
*/ */
#define CONFIG_FILE ".nethackrc" #define CONFIG_FILE ".nethackrc"
#define CONFIG_TEMPLATE ".nethackrc.template" #define CONFIG_TEMPLATE "nethackrc.template"
#define SYSCF_TEMPLATE "sysconf.template" #define SYSCF_TEMPLATE "sysconf.template"
#define SYMBOLS_TEMPLATE "symbols.template" #define SYMBOLS_TEMPLATE "symbols.template"
#define GUIDEBOOK_FILE "Guidebook.txt" #define GUIDEBOOK_FILE "Guidebook.txt"
+2 -2
View File
@@ -1136,7 +1136,7 @@ $(ONH)/%.o: $(SRC)/%.c $(NHLUAH) | $(ONH)
#========================================== #==========================================
TARGET_CPU = x64 TARGET_CPU = x64
NHV=370 NHV=370
PKGFILES = .nethackrc.template Guidebook.txt license NetHack.exe NetHack.txt \ PKGFILES = nethackrc.template Guidebook.txt license NetHack.exe NetHack.txt \
NetHackW.exe opthelp nhdat370 record symbols sysconf.template NetHackW.exe opthelp nhdat370 record symbols sysconf.template
FILESTOZIP = $(addprefix $(GAMEDIR)/, $(PKGFILES)) FILESTOZIP = $(addprefix $(GAMEDIR)/, $(PKGFILES))
MAINZIP = $(PkgDir)/nethack-$(NHV)-win-$(TARGET_CPU)-msys2.zip MAINZIP = $(PkgDir)/nethack-$(NHV)-win-$(TARGET_CPU)-msys2.zip
@@ -1224,7 +1224,7 @@ all: package
TO_BINARY = $(GAMEDIR)/NetHack.exe $(RTARGETS) $(GAMEDIRDLLS) \ TO_BINARY = $(GAMEDIR)/NetHack.exe $(RTARGETS) $(GAMEDIRDLLS) \
$(addprefix $(GAMEDIR)/, \ $(addprefix $(GAMEDIR)/, \
$(addsuffix .template, sysconf .nethackrc symbols) \ $(addsuffix .template, sysconf nethackrc symbols) \
Guidebook.txt NetHack.txt license opthelp record) Guidebook.txt NetHack.txt license opthelp record)
ifeq "$(HAVE_SOUNDLIB)" "Y" ifeq "$(HAVE_SOUNDLIB)" "Y"
+3 -3
View File
@@ -1538,7 +1538,7 @@ binary.tag: $(DAT)\data $(DAT)\rumors $(DAT)\oracles $(DLB) \
if exist $(DOC)\nethack.txt copy $(DOC)\nethack.txt $(GAMEDIR)\NetHack.txt if exist $(DOC)\nethack.txt copy $(DOC)\nethack.txt $(GAMEDIR)\NetHack.txt
@if exist $(GAMEDIR)\NetHack.PDB echo NOTE: You may want to remove $(GAMEDIR:\=/)/NetHack.PDB to conserve space @if exist $(GAMEDIR)\NetHack.PDB echo NOTE: You may want to remove $(GAMEDIR:\=/)/NetHack.PDB to conserve space
@if exist $(GAMEDIR)\NetHackW.PDB echo NOTE: You may want to remove $(GAMEDIR:\=/)/NetHackW.PDB to conserve space @if exist $(GAMEDIR)\NetHackW.PDB echo NOTE: You may want to remove $(GAMEDIR:\=/)/NetHackW.PDB to conserve space
-if exist $(MSWSYS)\.nethackrc.template copy $(MSWSYS)\.nethackrc.template $(GAMEDIR) -if exist $(MSWSYS)\nethackrc.template copy $(MSWSYS)\nethackrc.template $(GAMEDIR)
-if not exist $(GAMEDIR)\record. goto>$(GAMEDIR)\record. -if not exist $(GAMEDIR)\record. goto>$(GAMEDIR)\record.
echo binary built > $@ echo binary built > $@
@@ -2298,9 +2298,9 @@ $(SndWavDir)\sa2_xplevelup.wav: $(SndWavDir)\sa2_xplevelup.uu $(U)uudecode.exe
# packaging # packaging
#=============================================================================== #===============================================================================
PKGFILES = .nethackrc.template Guidebook.txt license NetHack.exe NetHack.txt \ PKGFILES = nethackrc.template Guidebook.txt license NetHack.exe NetHack.txt \
NetHackW.exe opthelp nhdat370 record symbols sysconf.template NetHackW.exe opthelp nhdat370 record symbols sysconf.template
FILESTOZIP = $(BinDir)\.nethackrc.template $(BinDir)\Guidebook.txt $(BinDir)\license \ FILESTOZIP = $(BinDir)\nethackrc.template $(BinDir)\Guidebook.txt $(BinDir)\license \
$(BinDir)\NetHack.exe $(BinDir)\NetHack.txt $(BinDir)\NetHackW.exe \ $(BinDir)\NetHack.exe $(BinDir)\NetHack.txt $(BinDir)\NetHackW.exe \
$(BinDir)\opthelp $(BinDir)\nhdat370 $(BinDir)\record \ $(BinDir)\opthelp $(BinDir)\nhdat370 $(BinDir)\record \
$(BinDir)\symbols $(BinDir)\sysconf.template $(BinDir)\symbols $(BinDir)\sysconf.template
+5 -5
View File
@@ -2,12 +2,12 @@
<Import Project="..\dirs.props" /> <Import Project="..\dirs.props" />
<!-- TODO not copying record --> <!-- TODO not copying record -->
<Target Name="Build" <Target Name="Build"
Inputs="$(SysWindDir).nethackrc.template;$(DocDir)Guidebook.txt;$(DatDir)license;$(SysWindDir)sysconf.template;$(DocDir)nethack.txt;$(DatDir)symbols;$(WinWin32Dir)record;$(DatDir)opthelp" Inputs="$(SysWindDir)nethackrc.template;$(DocDir)Guidebook.txt;$(DatDir)license;$(SysWindDir)sysconf.template;$(DocDir)nethack.txt;$(DatDir)symbols;$(WinWin32Dir)record;$(DatDir)opthelp"
Outputs="$(BinDir).nethackrc.template;$(BinDir)Guidebook.txt;$(BinDir)license;$(BinDir)sysconf.template;$(BinDir)symbols.template;$(BinDir)record;$(BinDir)opthelp"> Outputs="$(BinDir)nethackrc.template;$(BinDir)Guidebook.txt;$(BinDir)license;$(BinDir)sysconf.template;$(BinDir)symbols.template;$(BinDir)record;$(BinDir)opthelp">
<Copy SourceFiles="$(SysWindDir).nethackrc.template;$(DocDir)Guidebook.txt;$(DatDir)license;$(SysWindDir)sysconf.template;$(DocDir)nethack.txt;$(DatDir)symbols;$(WinWin32Dir)record;$(DatDir)opthelp" <Copy SourceFiles="$(SysWindDir)nethackrc.template;$(DocDir)Guidebook.txt;$(DatDir)license;$(SysWindDir)sysconf.template;$(DocDir)nethack.txt;$(DatDir)symbols;$(WinWin32Dir)record;$(DatDir)opthelp"
DestinationFiles="$(BinDir).nethackrc.template;$(BinDir)Guidebook.txt;$(BinDir)license;$(BinDir)sysconf.template;$(BinDir)nethack.txt;$(BinDir)symbols.template;$(BinDir)record;$(BinDir)opthelp" /> DestinationFiles="$(BinDir)nethackrc.template;$(BinDir)Guidebook.txt;$(BinDir)license;$(BinDir)sysconf.template;$(BinDir)nethack.txt;$(BinDir)symbols.template;$(BinDir)record;$(BinDir)opthelp" />
</Target> </Target>
<Target Name="Clean"> <Target Name="Clean">
<Delete Files="$(BinDir).nethackrc.template;$(BinDir)Guidebook.txt;$(BinDir)license;$(BinDir)sysconf.template;$(BinDir)nethack.txt;$(BinDir)symbols.template;$(BinDir)record;$(BinDir)opthelp"/> <Delete Files="$(BinDir)nethackrc.template;$(BinDir)Guidebook.txt;$(BinDir)license;$(BinDir)sysconf.template;$(BinDir)nethack.txt;$(BinDir)symbols.template;$(BinDir)record;$(BinDir)opthelp"/>
</Target> </Target>
</Project> </Project>
+3 -3
View File
@@ -112,8 +112,8 @@
<Content Include="Images\Wide310x150Logo.scale-125.png" /> <Content Include="Images\Wide310x150Logo.scale-125.png" />
<Content Include="Images\Wide310x150Logo.scale-150.png" /> <Content Include="Images\Wide310x150Logo.scale-150.png" />
<Content Include="Images\Wide310x150Logo.scale-200.png" /> <Content Include="Images\Wide310x150Logo.scale-200.png" />
<Content Include="..\..\..\binary\$(Configuration)\$(Platform)\.nethackrc.template"> <Content Include="..\..\..\binary\$(Configuration)\$(Platform)\nethackrc.template">
<Link>NetHackW\.nethackrc.template</Link> <Link>NetHackW\nethackrc.template</Link>
</Content> </Content>
<Content Include="..\..\..\binary\$(Configuration)\$(Platform)\Guidebook.txt"> <Content Include="..\..\..\binary\$(Configuration)\$(Platform)\Guidebook.txt">
<Link>NetHackW\Guidebook.txt</Link> <Link>NetHackW\Guidebook.txt</Link>
@@ -141,4 +141,4 @@
<ProjectReference Include="NetHackW\NetHackW.vcxproj" /> <ProjectReference Include="NetHackW\NetHackW.vcxproj" />
</ItemGroup> </ItemGroup>
<Import Project="$(WapProjPath)\Microsoft.DesktopBridge.targets" /> <Import Project="$(WapProjPath)\Microsoft.DesktopBridge.targets" />
</Project> </Project>