|
12 | 12 | !ENDIF |
13 | 13 |
|
14 | 14 | !IFNDEF LANGUAGE |
15 | | -! IF [powershell.exe -nologo -noprofile \ |
16 | | - $$lng=(Get-UICulture).TwoLetterISOLanguageName; \ |
17 | | - $$Env:LANGUAGE=$$lng;Set-Content -Path .\lng.tmp -Value "LANGUAGE=$$lng"] |
| 15 | +! IF ![powershell.exe -NoLogo -NoProfile -Command \ |
| 16 | + Set-Content -Path .\_lng.tmp \ |
| 17 | + -Value "LANGUAGE=$$((Get-UICulture).TwoLetterISOLanguageName)"] |
| 18 | +! INCLUDE _lng.tmp |
| 19 | +! IF [del /q .\_lng.tmp] |
| 20 | +! ENDIF |
| 21 | +! MESSAGE |
| 22 | +! MESSAGE The %LANGUAGE% environment variable is not set. |
| 23 | +! MESSAGE This variable will be temporarily set to "$(LANGUAGE)" while "nmake.exe" is running. |
| 24 | +! MESSAGE See README_mvc.txt for more information on the %LANGUAGE% environment variable. |
| 25 | +! MESSAGE |
18 | 26 | ! ENDIF |
19 | | -# In order for the "install" and "cleanup-po" rule to work. |
20 | | -# The others work with just setting the environment variable. |
21 | | -# And to show in the message. |
22 | | -! INCLUDE lng.tmp |
23 | | -! IF [del /q .\lng.tmp] |
24 | | -! ENDIF |
25 | | -! MESSAGE |
26 | | -! MESSAGE The %LANGUAGE% environment variable is not set. |
27 | | -! MESSAGE This variable will be temporarily set to "$(LANGUAGE)" while "nmake.exe" is running. |
28 | | -! MESSAGE See README_mvc.txt for more information on the %LANGUAGE% environment variable. |
29 | | -! MESSAGE |
30 | 27 | !ELSE |
31 | 28 | ! MESSAGE LANGUAGE is already set "$(LANGUAGE)" |
32 | 29 | !ENDIF |
@@ -95,12 +92,11 @@ PSFLAGS = -NoLogo -NoProfile -Command |
95 | 92 |
|
96 | 93 | INSTALLDIR = $(VIMRUNTIME)\lang\$(LANGUAGE)\LC_MESSAGES |
97 | 94 |
|
98 | | -!IF [%comspec% /C \ |
99 | | - "for /F %G in ('wmic Path Win32_LocalTime Get Year /format:list ^| \ |
100 | | - findstr /R [0-9^]') do @(echo:%G> .\_date.tmp)"] |
101 | | -!ENDIF |
102 | | -!INCLUDE .\_date.tmp |
103 | | -!IF [$(RM) .\_date.tmp] |
| 95 | +!IF ![$(PS) $(PSFLAGS) Set-Content -Path .\_year.tmp \ |
| 96 | + -Value Year=$$((Get-Date).Year)] |
| 97 | +! INCLUDE .\_year.tmp |
| 98 | +! IF [$(RM) .\_year.tmp] |
| 99 | +! ENDIF |
104 | 100 | !ENDIF |
105 | 101 |
|
106 | 102 | .SUFFIXES: |
|
0 commit comments