case consistency part 5

This commit is contained in:
Araq 2013-12-28 00:37:45 +01:00
commit 9c3751a37c
10 changed files with 42 additions and 42 deletions

View file

@ -1,5 +1,5 @@
#! stdtmpl(subsChar='?') | standard
#proc GenerateBuildBatchScript(c: TConfigData, winIndex, cpuIndex: int): string =
#proc generateBuildBatchScript(c: TConfigData, winIndex, cpuIndex: int): string =
# result = "@echo off\nREM Generated by niminst\n"
SET CC=gcc
SET LINKER=gcc

View file

@ -1,5 +1,5 @@
#! stdtmpl(subsChar='?') | standard
#proc GenerateBuildShellScript(c: TConfigData): string =
#proc generateBuildShellScript(c: TConfigData): string =
# result = "#! /bin/sh\n# Generated from niminst\n" &
# "# Template is in tools/buildsh.tmpl\n" &
# "# To regenerate run ``niminst csource`` or ``koch csource``\n"

View file

@ -101,7 +101,7 @@ proc createChangelog(pkgName, version, maintainer: string): string =
addN(" * Initial release.")
addN("")
addN(" -- " & maintainer & " " &
formatDateTime(getGmTime(getTime()), "+0000"))
formatDateTime(getGMTime(getTime()), "+0000"))
proc createRules(): string =
## Creates a nimrod application-agnostic rules file for building deb packages.

View file

@ -1,5 +1,5 @@
#! stdtmpl(subsChar='?') | standard
#proc GenerateDeinstallScript(c: TConfigData): string =
#proc generateDeinstallScript(c: TConfigData): string =
# result = "#! /bin/sh\n# Generated by niminst\n"
# var proj = c.name.toLower

View file

@ -1,5 +1,5 @@
#! stdtmpl | standard
#proc GenerateInnoSetup(c: TConfigData): string =
#proc generateInnoSetup(c: TConfigData): string =
# result = ""
; Default Template for NimInst
[Setup]

View file

@ -1,5 +1,5 @@
#! stdtmpl(subsChar = '?') | standard
#proc GenerateInstallScript(c: TConfigData): string =
#proc generateInstallScript(c: TConfigData): string =
# result = "#! /bin/sh\n# Generated by niminst\n"
# var proj = c.name.toLower

View file

@ -188,7 +188,7 @@ proc parseCmdLine(c: var TConfigData) =
proc walkDirRecursively(s: var seq[string], root: string) =
for k, f in walkDir(root):
case k
of pcFile, pcLinkToFile: add(s, UnixToNativePath(f))
of pcFile, pcLinkToFile: add(s, unixToNativePath(f))
of pcDir: walkDirRecursively(s, f)
of pcLinkToDir: nil
@ -199,7 +199,7 @@ proc addFiles(s: var seq[string], patterns: seq[string]) =
else:
var i = 0
for f in walkFiles(p):
add(s, UnixToNativePath(f))
add(s, unixToNativePath(f))
inc(i)
if i == 0: echo("[Warning] No file found that matches: " & p)
@ -286,7 +286,7 @@ proc parseIniFile(c: var TConfigData) =
of "console": c.app = appConsole
of "gui": c.app = appGUI
else: quit(errorStr(p, "expected: console or gui"))
of "license": c.license = UnixToNativePath(k.value)
of "license": c.license = unixToNativePath(k.value)
else: quit(errorStr(p, "unknown variable: " & k.key))
of "var": nil
of "winbin": filesOnly(p, k.key, v, c.cat[fcWinBin])