mirror of
https://github.com/vim/vim.git
synced 2025-09-30 04:44:14 -04:00
runtime(tutor): simplify tutor makefiles (#13859)
Signed-off-by: RestorerZ <restorer@mail2k.ru> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@@ -27,6 +27,9 @@ ICONV = "$(ICONV_PATH)\iconv.exe"
|
|||||||
|
|
||||||
RM = del /q
|
RM = del /q
|
||||||
CP = copy /y
|
CP = copy /y
|
||||||
|
PS = PowerShell.exe
|
||||||
|
|
||||||
|
PSFLAGS = -NoLogo -NoProfile -Command
|
||||||
|
|
||||||
all : $(CONVERTED)
|
all : $(CONVERTED)
|
||||||
|
|
||||||
@@ -34,8 +37,7 @@ tutor.utf-8 : tutor
|
|||||||
!IF DEFINED (ICONV)
|
!IF DEFINED (ICONV)
|
||||||
$(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@
|
$(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@
|
||||||
!ELSE
|
!ELSE
|
||||||
powershell -nologo -noprofile -Command \
|
$(PS) $(PSFLAGS) [System.IO.File]::ReadAllText(\"$?\", \
|
||||||
[System.IO.File]::ReadAllText(\"$?\", \
|
|
||||||
[System.Text.Encoding]::GetEncoding(28591)) ^| \
|
[System.Text.Encoding]::GetEncoding(28591)) ^| \
|
||||||
1>nul New-Item -Force -ItemType file -Path . -Name $@
|
1>nul New-Item -Force -ItemType file -Path . -Name $@
|
||||||
!ENDIF
|
!ENDIF
|
||||||
@@ -44,8 +46,7 @@ tutor.bar : tutor.bar.utf-8
|
|||||||
!IF DEFINED (ICONV)
|
!IF DEFINED (ICONV)
|
||||||
$(ICONV) -f UTF-8 -t ISO-8859-1 $? >$@
|
$(ICONV) -f UTF-8 -t ISO-8859-1 $? >$@
|
||||||
!ELSE
|
!ELSE
|
||||||
powershell -nologo -noprofile -Command \
|
$(PS) $(PSFLAGS) [System.IO.File]::WriteAllText(\"$@\", \
|
||||||
[System.IO.File]::WriteAllText(\"$@\", \
|
|
||||||
[System.IO.File]::ReadAllText(\"$?\", \
|
[System.IO.File]::ReadAllText(\"$?\", \
|
||||||
[System.Text.Encoding]::GetEncoding(65001)), \
|
[System.Text.Encoding]::GetEncoding(65001)), \
|
||||||
[System.Text.Encoding]::GetEncoding(28591))
|
[System.Text.Encoding]::GetEncoding(28591))
|
||||||
@@ -55,8 +56,7 @@ tutor.ca.utf-8 : tutor.ca
|
|||||||
!IF DEFINED (ICONV)
|
!IF DEFINED (ICONV)
|
||||||
$(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@
|
$(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@
|
||||||
!ELSE
|
!ELSE
|
||||||
powershell -nologo -noprofile -Command \
|
$(PS) $(PSFLAGS) [System.IO.File]::ReadAllText(\"$?\", \
|
||||||
[System.IO.File]::ReadAllText(\"$?\", \
|
|
||||||
[System.Text.Encoding]::GetEncoding(28591)) ^| \
|
[System.Text.Encoding]::GetEncoding(28591)) ^| \
|
||||||
1>nul New-Item -Force -ItemType file -Path . -Name $@
|
1>nul New-Item -Force -ItemType file -Path . -Name $@
|
||||||
!ENDIF
|
!ENDIF
|
||||||
@@ -65,8 +65,7 @@ tutor.de.utf-8 : tutor.de
|
|||||||
!IF DEFINED (ICONV)
|
!IF DEFINED (ICONV)
|
||||||
$(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@
|
$(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@
|
||||||
!ELSE
|
!ELSE
|
||||||
powershell -nologo -noprofile -Command \
|
$(PS) $(PSFLAGS) [System.IO.File]::ReadAllText(\"$?\", \
|
||||||
[System.IO.File]::ReadAllText(\"$?\", \
|
|
||||||
[System.Text.Encoding]::GetEncoding(28591)) ^| \
|
[System.Text.Encoding]::GetEncoding(28591)) ^| \
|
||||||
1>nul New-Item -Force -ItemType file -Path . -Name $@
|
1>nul New-Item -Force -ItemType file -Path . -Name $@
|
||||||
!ENDIF
|
!ENDIF
|
||||||
@@ -75,8 +74,7 @@ tutor.el : tutor.el.utf-8
|
|||||||
!IF DEFINED (ICONV)
|
!IF DEFINED (ICONV)
|
||||||
$(ICONV) -f UTF-8 -t ISO-8859-7 $? >$@
|
$(ICONV) -f UTF-8 -t ISO-8859-7 $? >$@
|
||||||
!ELSE
|
!ELSE
|
||||||
powershell -nologo -noprofile -Command \
|
$(PS) $(PSFLAGS) [System.IO.File]::WriteAllText(\"$@\", \
|
||||||
[System.IO.File]::WriteAllText(\"$@\", \
|
|
||||||
[System.IO.File]::ReadAllText(\"$?\", \
|
[System.IO.File]::ReadAllText(\"$?\", \
|
||||||
[System.Text.Encoding]::GetEncoding(65001)), \
|
[System.Text.Encoding]::GetEncoding(65001)), \
|
||||||
[System.Text.Encoding]::GetEncoding(28597))
|
[System.Text.Encoding]::GetEncoding(28597))
|
||||||
@@ -86,8 +84,7 @@ tutor.el.cp737 : tutor.el.utf-8
|
|||||||
!IF DEFINED (ICONV)
|
!IF DEFINED (ICONV)
|
||||||
$(ICONV) -f UTF-8 -t CP737 $? >$@
|
$(ICONV) -f UTF-8 -t CP737 $? >$@
|
||||||
!ELSE
|
!ELSE
|
||||||
powershell -nologo -noprofile -Command \
|
$(PS) $(PSFLAGS) [System.IO.File]::WriteAllText(\"$@\", \
|
||||||
[System.IO.File]::WriteAllText(\"$@\", \
|
|
||||||
[System.IO.File]::ReadAllText(\"$?\", \
|
[System.IO.File]::ReadAllText(\"$?\", \
|
||||||
[System.Text.Encoding]::GetEncoding(65001)), \
|
[System.Text.Encoding]::GetEncoding(65001)), \
|
||||||
[System.Text.Encoding]::GetEncoding(737))
|
[System.Text.Encoding]::GetEncoding(737))
|
||||||
@@ -97,8 +94,7 @@ tutor.eo : tutor.eo.utf-8
|
|||||||
!IF DEFINED (ICONV)
|
!IF DEFINED (ICONV)
|
||||||
$(ICONV) -f UTF-8 -t ISO-8859-3 $? >$@
|
$(ICONV) -f UTF-8 -t ISO-8859-3 $? >$@
|
||||||
!ELSE
|
!ELSE
|
||||||
powershell -nologo -noprofile -Command \
|
$(PS) $(PSFLAGS) [System.IO.File]::WriteAllText(\"$@\", \
|
||||||
[System.IO.File]::WriteAllText(\"$@\", \
|
|
||||||
[System.IO.File]::ReadAllText(\"$?\", \
|
[System.IO.File]::ReadAllText(\"$?\", \
|
||||||
[System.Text.Encoding]::GetEncoding(65001)), \
|
[System.Text.Encoding]::GetEncoding(65001)), \
|
||||||
[System.Text.Encoding]::GetEncoding(28593))
|
[System.Text.Encoding]::GetEncoding(28593))
|
||||||
@@ -108,8 +104,7 @@ tutor.es : tutor.es.utf-8
|
|||||||
!IF DEFINED (ICONV)
|
!IF DEFINED (ICONV)
|
||||||
$(ICONV) -f UTF-8 -t ISO-8859-1 $? >$@
|
$(ICONV) -f UTF-8 -t ISO-8859-1 $? >$@
|
||||||
!ELSE
|
!ELSE
|
||||||
powershell -nologo -noprofile -Command \
|
$(PS) $(PSFLAGS) [System.IO.File]::WriteAllText(\"$@\", \
|
||||||
[System.IO.File]::WriteAllText(\"$@\", \
|
|
||||||
[System.IO.File]::ReadAllText(\"$?\", \
|
[System.IO.File]::ReadAllText(\"$?\", \
|
||||||
[System.Text.Encoding]::GetEncoding(65001)), \
|
[System.Text.Encoding]::GetEncoding(65001)), \
|
||||||
[System.Text.Encoding]::GetEncoding(28591))
|
[System.Text.Encoding]::GetEncoding(28591))
|
||||||
@@ -119,8 +114,7 @@ tutor.fr.utf-8 : tutor.fr
|
|||||||
!IF DEFINED (ICONV)
|
!IF DEFINED (ICONV)
|
||||||
$(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@
|
$(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@
|
||||||
!ELSE
|
!ELSE
|
||||||
powershell -nologo -noprofile -Command \
|
$(PS) $(PSFLAGS) [System.IO.File]::ReadAllText(\"$?\", \
|
||||||
[System.IO.File]::ReadAllText(\"$?\", \
|
|
||||||
[System.Text.Encoding]::GetEncoding(28591)) ^| \
|
[System.Text.Encoding]::GetEncoding(28591)) ^| \
|
||||||
1>nul New-Item -Force -ItemType file -Path . -Name $@
|
1>nul New-Item -Force -ItemType file -Path . -Name $@
|
||||||
!ENDIF
|
!ENDIF
|
||||||
@@ -129,8 +123,7 @@ tutor.hr : tutor.hr.utf-8
|
|||||||
!IF DEFINED (ICONV)
|
!IF DEFINED (ICONV)
|
||||||
$(ICONV) -f UTF-8 -t ISO-8859-2 $? >$@
|
$(ICONV) -f UTF-8 -t ISO-8859-2 $? >$@
|
||||||
!ELSE
|
!ELSE
|
||||||
powershell -nologo -noprofile -Command \
|
$(PS) $(PSFLAGS) [System.IO.File]::WriteAllText(\"$@\", \
|
||||||
[System.IO.File]::WriteAllText(\"$@\", \
|
|
||||||
[System.IO.File]::ReadAllText(\"$?\", \
|
[System.IO.File]::ReadAllText(\"$?\", \
|
||||||
[System.Text.Encoding]::GetEncoding(65001)), \
|
[System.Text.Encoding]::GetEncoding(65001)), \
|
||||||
[System.Text.Encoding]::GetEncoding(28592))
|
[System.Text.Encoding]::GetEncoding(28592))
|
||||||
@@ -140,8 +133,7 @@ tutor.hr.cp1250 : tutor.hr.utf-8
|
|||||||
!IF DEFINED (ICONV)
|
!IF DEFINED (ICONV)
|
||||||
$(ICONV) -f UTF-8 -t CP1250 $? >$@
|
$(ICONV) -f UTF-8 -t CP1250 $? >$@
|
||||||
!ELSE
|
!ELSE
|
||||||
powershell -nologo -noprofile -Command \
|
$(PS) $(PSFLAGS) [System.IO.File]::WriteAllText(\"$@\", \
|
||||||
[System.IO.File]::WriteAllText(\"$@\", \
|
|
||||||
[System.IO.File]::ReadAllText(\"$?\", \
|
[System.IO.File]::ReadAllText(\"$?\", \
|
||||||
[System.Text.Encoding]::GetEncoding(65001)), \
|
[System.Text.Encoding]::GetEncoding(65001)), \
|
||||||
[System.Text.Encoding]::GetEncoding(1250))
|
[System.Text.Encoding]::GetEncoding(1250))
|
||||||
@@ -151,8 +143,7 @@ tutor.hu : tutor.hu.utf-8
|
|||||||
!IF DEFINED (ICONV)
|
!IF DEFINED (ICONV)
|
||||||
$(ICONV) -f UTF-8 -t ISO-8859-2 $? >$@
|
$(ICONV) -f UTF-8 -t ISO-8859-2 $? >$@
|
||||||
!ELSE
|
!ELSE
|
||||||
powershell -nologo -noprofile -Command \
|
$(PS) $(PSFLAGS) [System.IO.File]::WriteAllText(\"$@\", \
|
||||||
[System.IO.File]::WriteAllText(\"$@\", \
|
|
||||||
[System.IO.File]::ReadAllText(\"$?\", \
|
[System.IO.File]::ReadAllText(\"$?\", \
|
||||||
[System.Text.Encoding]::GetEncoding(65001)), \
|
[System.Text.Encoding]::GetEncoding(65001)), \
|
||||||
[System.Text.Encoding]::GetEncoding(28592))
|
[System.Text.Encoding]::GetEncoding(28592))
|
||||||
@@ -162,8 +153,7 @@ tutor.hu.cp1250 : tutor.hu.utf-8
|
|||||||
!IF DEFINED (ICONV)
|
!IF DEFINED (ICONV)
|
||||||
$(ICONV) -f UTF-8 -t CP1250 $? >$@
|
$(ICONV) -f UTF-8 -t CP1250 $? >$@
|
||||||
!ELSE
|
!ELSE
|
||||||
powershell -nologo -noprofile -Command \
|
$(PS) $(PSFLAGS) [System.IO.File]::WriteAllText(\"$@\", \
|
||||||
[System.IO.File]::WriteAllText(\"$@\", \
|
|
||||||
[System.IO.File]::ReadAllText(\"$?\", \
|
[System.IO.File]::ReadAllText(\"$?\", \
|
||||||
[System.Text.Encoding]::GetEncoding(65001)), \
|
[System.Text.Encoding]::GetEncoding(65001)), \
|
||||||
[System.Text.Encoding]::GetEncoding(1250))
|
[System.Text.Encoding]::GetEncoding(1250))
|
||||||
@@ -173,8 +163,7 @@ tutor.it.utf-8 : tutor.it
|
|||||||
!IF DEFINED (ICONV)
|
!IF DEFINED (ICONV)
|
||||||
$(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@
|
$(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@
|
||||||
!ELSE
|
!ELSE
|
||||||
powershell -nologo -noprofile -Command \
|
$(PS) $(PSFLAGS) [System.IO.File]::ReadAllText(\"$?\", \
|
||||||
[System.IO.File]::ReadAllText(\"$?\", \
|
|
||||||
[System.Text.Encoding]::GetEncoding(28591)) ^| \
|
[System.Text.Encoding]::GetEncoding(28591)) ^| \
|
||||||
1>nul New-Item -Force -ItemType file -Path . -Name $@
|
1>nul New-Item -Force -ItemType file -Path . -Name $@
|
||||||
!ENDIF
|
!ENDIF
|
||||||
@@ -183,8 +172,7 @@ tutor.ja.sjis : tutor.ja.utf-8
|
|||||||
!IF DEFINED (ICONV)
|
!IF DEFINED (ICONV)
|
||||||
$(ICONV) -f UTF-8 -t CP932 $? >$@
|
$(ICONV) -f UTF-8 -t CP932 $? >$@
|
||||||
!ELSE
|
!ELSE
|
||||||
powershell -nologo -noprofile -Command \
|
$(PS) $(PSFLAGS) [System.IO.File]::WriteAllText(\"$@\", \
|
||||||
[System.IO.File]::WriteAllText(\"$@\", \
|
|
||||||
[System.IO.File]::ReadAllText(\"$?\", \
|
[System.IO.File]::ReadAllText(\"$?\", \
|
||||||
[System.Text.Encoding]::GetEncoding(65001)), \
|
[System.Text.Encoding]::GetEncoding(65001)), \
|
||||||
[System.Text.Encoding]::GetEncoding(932))
|
[System.Text.Encoding]::GetEncoding(932))
|
||||||
@@ -194,8 +182,7 @@ tutor.ja.euc : tutor.ja.utf-8
|
|||||||
!IF DEFINED (ICONV)
|
!IF DEFINED (ICONV)
|
||||||
$(ICONV) -f UTF-8 -t EUC-JP $? >$@
|
$(ICONV) -f UTF-8 -t EUC-JP $? >$@
|
||||||
!ELSE
|
!ELSE
|
||||||
powershell -nologo -noprofile -Command \
|
$(PS) $(PSFLAGS) [System.IO.File]::WriteAllText(\"$@\", \
|
||||||
[System.IO.File]::WriteAllText(\"$@\", \
|
|
||||||
[System.IO.File]::ReadAllText(\"$?\", \
|
[System.IO.File]::ReadAllText(\"$?\", \
|
||||||
[System.Text.Encoding]::GetEncoding(65001)), \
|
[System.Text.Encoding]::GetEncoding(65001)), \
|
||||||
[System.Text.Encoding]::GetEncoding(51932))
|
[System.Text.Encoding]::GetEncoding(51932))
|
||||||
@@ -205,8 +192,7 @@ tutor.ko.euc : tutor.ko.utf-8
|
|||||||
!IF DEFINED (ICONV)
|
!IF DEFINED (ICONV)
|
||||||
$(ICONV) -f UTF-8 -t EUC-KR $? >$@
|
$(ICONV) -f UTF-8 -t EUC-KR $? >$@
|
||||||
!ELSE
|
!ELSE
|
||||||
powershell -nologo -noprofile -Command \
|
$(PS) $(PSFLAGS) [System.IO.File]::WriteAllText(\"$@\", \
|
||||||
[System.IO.File]::WriteAllText(\"$@\", \
|
|
||||||
[System.IO.File]::ReadAllText(\"$?\", \
|
[System.IO.File]::ReadAllText(\"$?\", \
|
||||||
[System.Text.Encoding]::GetEncoding(65001)), \
|
[System.Text.Encoding]::GetEncoding(65001)), \
|
||||||
[System.Text.Encoding]::GetEncoding(51949))
|
[System.Text.Encoding]::GetEncoding(51949))
|
||||||
@@ -216,8 +202,7 @@ tutor.nl : tutor.nl.utf-8
|
|||||||
!IF DEFINED (ICONV)
|
!IF DEFINED (ICONV)
|
||||||
$(ICONV) -f UTF-8 -t ISO-8859-1 $? >$@
|
$(ICONV) -f UTF-8 -t ISO-8859-1 $? >$@
|
||||||
!ELSE
|
!ELSE
|
||||||
powershell -nologo -noprofile -Command \
|
$(PS) $(PSFLAGS) [System.IO.File]::WriteAllText(\"$@\", \
|
||||||
[System.IO.File]::WriteAllText(\"$@\", \
|
|
||||||
[System.IO.File]::ReadAllText(\"$?\", \
|
[System.IO.File]::ReadAllText(\"$?\", \
|
||||||
[System.Text.Encoding]::GetEncoding(65001)), \
|
[System.Text.Encoding]::GetEncoding(65001)), \
|
||||||
[System.Text.Encoding]::GetEncoding(28591))
|
[System.Text.Encoding]::GetEncoding(28591))
|
||||||
@@ -227,8 +212,7 @@ tutor.no.utf-8 : tutor.no
|
|||||||
!IF DEFINED (ICONV)
|
!IF DEFINED (ICONV)
|
||||||
$(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@
|
$(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@
|
||||||
!ELSE
|
!ELSE
|
||||||
powershell -nologo -noprofile -Command \
|
$(PS) $(PSFLAGS) [System.IO.File]::ReadAllText(\"$?\", \
|
||||||
[System.IO.File]::ReadAllText(\"$?\", \
|
|
||||||
[System.Text.Encoding]::GetEncoding(28591)) ^| \
|
[System.Text.Encoding]::GetEncoding(28591)) ^| \
|
||||||
1>nul New-Item -Force -ItemType file -Path . -Name $@
|
1>nul New-Item -Force -ItemType file -Path . -Name $@
|
||||||
!ENDIF
|
!ENDIF
|
||||||
@@ -244,8 +228,7 @@ tutor.ru : tutor.ru.utf-8
|
|||||||
!IF DEFINED (ICONV)
|
!IF DEFINED (ICONV)
|
||||||
$(ICONV) -f UTF-8 -t KOI8-R $? >$@
|
$(ICONV) -f UTF-8 -t KOI8-R $? >$@
|
||||||
!ELSE
|
!ELSE
|
||||||
powershell -nologo -noprofile -Command \
|
$(PS) $(PSFLAGS) [System.IO.File]::WriteAllText(\"$@\", \
|
||||||
[System.IO.File]::WriteAllText(\"$@\", \
|
|
||||||
[System.IO.File]::ReadAllText(\"$?\", \
|
[System.IO.File]::ReadAllText(\"$?\", \
|
||||||
[System.Text.Encoding]::GetEncoding(65001)), \
|
[System.Text.Encoding]::GetEncoding(65001)), \
|
||||||
[System.Text.Encoding]::GetEncoding(20866))
|
[System.Text.Encoding]::GetEncoding(20866))
|
||||||
@@ -255,8 +238,7 @@ tutor.ru.cp1251 : tutor.ru.utf-8
|
|||||||
!IF DEFINED (ICONV)
|
!IF DEFINED (ICONV)
|
||||||
$(ICONV) -f UTF-8 -t CP1251 $? >$@
|
$(ICONV) -f UTF-8 -t CP1251 $? >$@
|
||||||
!ELSE
|
!ELSE
|
||||||
powershell -nologo -noprofile -Command \
|
$(PS) $(PSFLAGS) [System.IO.File]::WriteAllText(\"$@\", \
|
||||||
[System.IO.File]::WriteAllText(\"$@\", \
|
|
||||||
[System.IO.File]::ReadAllText(\"$?\", \
|
[System.IO.File]::ReadAllText(\"$?\", \
|
||||||
[System.Text.Encoding]::GetEncoding(65001)), \
|
[System.Text.Encoding]::GetEncoding(65001)), \
|
||||||
[System.Text.Encoding]::GetEncoding(1251))
|
[System.Text.Encoding]::GetEncoding(1251))
|
||||||
@@ -266,8 +248,7 @@ tutor.sv.utf-8 : tutor.sv
|
|||||||
!IF DEFINED (ICONV)
|
!IF DEFINED (ICONV)
|
||||||
$(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@
|
$(ICONV) -f ISO-8859-1 -t UTF-8 $? >$@
|
||||||
!ELSE
|
!ELSE
|
||||||
powershell -nologo -noprofile -Command \
|
$(PS) $(PSFLAGS) [System.IO.File]::ReadAllText(\"$?\", \
|
||||||
[System.IO.File]::ReadAllText(\"$?\", \
|
|
||||||
[System.Text.Encoding]::GetEncoding(28591)) ^| \
|
[System.Text.Encoding]::GetEncoding(28591)) ^| \
|
||||||
1>nul New-Item -Force -ItemType file -Path . -Name $@
|
1>nul New-Item -Force -ItemType file -Path . -Name $@
|
||||||
!ENDIF
|
!ENDIF
|
||||||
@@ -276,20 +257,18 @@ tutor.tr.iso9 : tutor.tr.utf-8
|
|||||||
!IF DEFINED (ICONV)
|
!IF DEFINED (ICONV)
|
||||||
$(ICONV) -f UTF-8 -t ISO-8859-9 $? >$@
|
$(ICONV) -f UTF-8 -t ISO-8859-9 $? >$@
|
||||||
!ELSE
|
!ELSE
|
||||||
powershell -nologo -noprofile -Command \
|
$(PS) $(PSFLAGS) [System.IO.File]::WriteAllText(\"$@\", \
|
||||||
[System.IO.File]::WriteAllText(\"$@\", \
|
|
||||||
[System.IO.File]::ReadAllText(\"$?\", \
|
[System.IO.File]::ReadAllText(\"$?\", \
|
||||||
[System.Text.Encoding]::GetEncoding(65001)), \
|
[System.Text.Encoding]::GetEncoding(65001)), \
|
||||||
[System.Text.Encoding]::GetEncoding(28599))
|
[System.Text.Encoding]::GetEncoding(28599))
|
||||||
!ENDIF
|
!ENDIF
|
||||||
|
|
||||||
tutor.zh.utf-8 : tutor.zh.big5
|
tutor.zh.utf-8 : tutor.zh.big5
|
||||||
powershell -nologo -noprofile -Command \
|
$(PS) $(PSFLAGS) [System.IO.File]::ReadAllText(\"$?\", \
|
||||||
[System.IO.File]::ReadAllText(\"$?\", \
|
|
||||||
[System.Text.Encoding]::GetEncoding(950)) ^| \
|
[System.Text.Encoding]::GetEncoding(950)) ^| \
|
||||||
1>nul New-Item -Force -ItemType file -Path . -Name $@
|
1>nul New-Item -Force -ItemType file -Path . -Name $@
|
||||||
|
|
||||||
clean : $(CONVERTED)
|
clean :
|
||||||
!$(RM) $**
|
@for %%G in ($(CONVERTED)) do (if exist .\%%G ($(RM) %%G))
|
||||||
|
|
||||||
# vim: set noet sw=8 ts=8 sts=0 wm=0 tw=0 ft=make:
|
# vim: set noet sw=8 ts=8 sts=0 wm=0 tw=0 ft=make:
|
||||||
|
@@ -8,83 +8,88 @@
|
|||||||
# Common components
|
# Common components
|
||||||
include Make_all.mak
|
include Make_all.mak
|
||||||
|
|
||||||
|
.PHONY: all clean
|
||||||
|
|
||||||
all: $(CONVERTED)
|
all: $(CONVERTED)
|
||||||
|
|
||||||
tutor.utf-8: tutor
|
tutor.utf-8: tutor
|
||||||
iconv -f ISO-8859-1 -t UTF-8 tutor > tutor.utf-8
|
iconv -f ISO-8859-1 -t UTF-8 $< >$@
|
||||||
|
|
||||||
tutor.bar: tutor.bar.utf-8
|
tutor.bar: tutor.bar.utf-8
|
||||||
iconv -f UTF-8 -t ISO-8859-1 tutor.bar.utf-8 > tutor.bar
|
iconv -f UTF-8 -t ISO-8859-1 $< >$@
|
||||||
|
|
||||||
tutor.ca.utf-8: tutor.ca
|
tutor.ca.utf-8: tutor.ca
|
||||||
iconv -f ISO-8859-1 -t UTF-8 tutor.ca > tutor.ca.utf-8
|
iconv -f ISO-8859-1 -t UTF-8 $< >$@
|
||||||
|
|
||||||
tutor.eo: tutor.eo.utf-8
|
tutor.eo: tutor.eo.utf-8
|
||||||
iconv -f UTF-8 -t ISO-8859-3 tutor.eo.utf-8 > tutor.eo
|
iconv -f UTF-8 -t ISO-8859-3 $< >$@
|
||||||
|
|
||||||
tutor.de.utf-8: tutor.de
|
tutor.de.utf-8: tutor.de
|
||||||
iconv -f ISO-8859-1 -t UTF-8 tutor.de > tutor.de.utf-8
|
iconv -f ISO-8859-1 -t UTF-8 $< >$@
|
||||||
|
|
||||||
tutor.el: tutor.el.utf-8
|
tutor.el: tutor.el.utf-8
|
||||||
iconv -f UTF-8 -t ISO-8859-7 tutor.el.utf-8 > tutor.el
|
iconv -f UTF-8 -t ISO-8859-7 $< >$@
|
||||||
|
|
||||||
tutor.el.cp737: tutor.el.utf-8
|
tutor.el.cp737: tutor.el.utf-8
|
||||||
iconv -f UTF-8 -t CP737 tutor.el.utf-8 > tutor.el.cp737
|
iconv -f UTF-8 -t CP737 $< >$@
|
||||||
|
|
||||||
tutor.es: tutor.es.utf-8
|
tutor.es: tutor.es.utf-8
|
||||||
iconv -f UTF-8 -t ISO-8859-1 tutor.es.utf-8 > tutor.es
|
iconv -f UTF-8 -t ISO-8859-1 $< >$@
|
||||||
|
|
||||||
tutor.fr.utf-8: tutor.fr
|
tutor.fr.utf-8: tutor.fr
|
||||||
iconv -f ISO-8859-1 -t UTF-8 tutor.fr > tutor.fr.utf-8
|
iconv -f ISO-8859-1 -t UTF-8 $< >$@
|
||||||
|
|
||||||
tutor.hu: tutor.hu.utf-8
|
tutor.hu: tutor.hu.utf-8
|
||||||
iconv -f UTF-8 -t ISO-8859-2 tutor.hu.utf-8 > tutor.hu
|
iconv -f UTF-8 -t ISO-8859-2 $< >$@
|
||||||
|
|
||||||
tutor.hu.cp1250: tutor.hu.utf-8
|
tutor.hu.cp1250: tutor.hu.utf-8
|
||||||
iconv -f UTF-8 -t CP1250 tutor.hu.utf-8 > tutor.hu.cp1250
|
iconv -f UTF-8 -t CP1250 $< >$@
|
||||||
|
|
||||||
tutor.it.utf-8: tutor.it
|
tutor.it.utf-8: tutor.it
|
||||||
iconv -f ISO-8859-1 -t UTF-8 tutor.it > tutor.it.utf-8
|
iconv -f ISO-8859-1 -t UTF-8 $< >$@
|
||||||
|
|
||||||
tutor.hr: tutor.hr.utf-8
|
tutor.hr: tutor.hr.utf-8
|
||||||
iconv -f UTF-8 -t ISO-8859-2 tutor.hr.utf-8 > tutor.hr
|
iconv -f UTF-8 -t ISO-8859-2 $< >$@
|
||||||
|
|
||||||
tutor.hr.cp1250: tutor.hr.utf-8
|
tutor.hr.cp1250: tutor.hr.utf-8
|
||||||
iconv -f UTF-8 -t CP1250 tutor.hr.utf-8 > tutor.hr.cp1250
|
iconv -f UTF-8 -t CP1250 $< >$@
|
||||||
|
|
||||||
tutor.ja.sjis: tutor.ja.utf-8
|
tutor.ja.sjis: tutor.ja.utf-8
|
||||||
iconv -f UTF-8 -t CP932 tutor.ja.utf-8 > tutor.ja.sjis
|
iconv -f UTF-8 -t CP932 $< >$@
|
||||||
|
|
||||||
tutor.ja.euc: tutor.ja.utf-8
|
tutor.ja.euc: tutor.ja.utf-8
|
||||||
iconv -f UTF-8 -t EUC-JP tutor.ja.utf-8 > tutor.ja.euc
|
iconv -f UTF-8 -t EUC-JP $< >$@
|
||||||
|
|
||||||
tutor.ko.euc: tutor.ko.utf-8
|
tutor.ko.euc: tutor.ko.utf-8
|
||||||
iconv -f UTF-8 -t EUC-KR tutor.ko.utf-8 > tutor.ko.euc
|
iconv -f UTF-8 -t EUC-KR $< >$@
|
||||||
|
|
||||||
tutor.nl: tutor.nl.utf-8
|
tutor.nl: tutor.nl.utf-8
|
||||||
iconv -f UTF-8 -t ISO-8859-1 tutor.nl.utf-8 > tutor.nl
|
iconv -f UTF-8 -t ISO-8859-1 $< >$@
|
||||||
|
|
||||||
tutor.no.utf-8: tutor.no
|
tutor.no.utf-8: tutor.no
|
||||||
iconv -f ISO-8859-1 -t UTF-8 tutor.no > tutor.no.utf-8
|
iconv -f ISO-8859-1 -t UTF-8 $< >$@
|
||||||
|
|
||||||
# nb is an alias for no
|
# nb is an alias for no
|
||||||
tutor.nb: tutor.no
|
tutor.nb: tutor.no
|
||||||
cp tutor.no tutor.nb
|
cp $< $@
|
||||||
|
|
||||||
tutor.nb.utf-8: tutor.no.utf-8
|
tutor.nb.utf-8: tutor.no.utf-8
|
||||||
cp tutor.no.utf-8 tutor.nb.utf-8
|
cp $< $@
|
||||||
|
|
||||||
tutor.ru: tutor.ru.utf-8
|
tutor.ru: tutor.ru.utf-8
|
||||||
iconv -f UTF-8 -t KOI8-R tutor.ru.utf-8 > tutor.ru
|
iconv -f UTF-8 -t KOI8-R $< >$@
|
||||||
|
|
||||||
tutor.ru.cp1251: tutor.ru.utf-8
|
tutor.ru.cp1251: tutor.ru.utf-8
|
||||||
iconv -f UTF-8 -t CP1251 tutor.ru.utf-8 > tutor.ru.cp1251
|
iconv -f UTF-8 -t CP1251 $< >$@
|
||||||
|
|
||||||
tutor.tr.iso9: tutor.tr.utf-8
|
tutor.tr.iso9: tutor.tr.utf-8
|
||||||
iconv -f UTF-8 -t ISO-8859-9 tutor.tr.utf-8 > tutor.tr.iso9
|
iconv -f UTF-8 -t ISO-8859-9 $< >$@
|
||||||
|
|
||||||
tutor.sv.utf-8: tutor.sv
|
tutor.sv.utf-8: tutor.sv
|
||||||
iconv -f ISO-8859-1 -t UTF-8 tutor.sv > tutor.sv.utf-8
|
iconv -f ISO-8859-1 -t UTF-8 $< >$@
|
||||||
|
|
||||||
tutor.zh.utf-8: tutor.zh.big5
|
tutor.zh.utf-8: tutor.zh.big5
|
||||||
iconv -f BIG-5 -t UTF-8 tutor.zh.big5 > tutor.zh.utf-8
|
iconv -f BIG-5 -t UTF-8 $< >$@
|
||||||
|
|
||||||
|
clean:
|
||||||
|
for G in $(CONVERTED); do if [ -f $$G ]; then rm -f $$G; fi; done
|
||||||
|
Reference in New Issue
Block a user