common/vcmake.bat
author Jan Vrany <jan.vrany@fit.cvut.cz>
Tue, 08 Jan 2019 09:35:11 +0000
changeset 866 8a885a75daa9
parent 269 9fe7ec430706
child 909 993b38cb97dd
permissions -rw-r--r--
Issue 256: fix parsing branch name from changelog To retrieve a branch of an changeset, `stx:libscm` uses `{branch}` branch keyword and then parses it as "name list". However, according to documentation it is a single string: branch String. The name of the branch on which the changeset was committed. This obviously caused problems when branch name had spaces in it. This commit fixes the problem. One remaining thing is that `stx:libscm` technically allows a changeset to be in more than one branch which seems to be impossible in Mercurial itself. This should be investigated and fixed, eventually.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
43
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
     1
@REM -------
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
     2
@REM make using Microsoft Visual C compiler
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
     3
@REM type vcmake, and wait...
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
     4
@REM do not edit - automatically generated from ProjectDefinition
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
     5
@REM -------
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
     6
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
     7
@if not defined VSINSTALLDIR (
269
9fe7ec430706 SCMAbstractPackageModel: set repositoryRoot relative to parent when parent is set using #setParent:.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 148
diff changeset
     8
    pushd ..\..\rules
9fe7ec430706 SCMAbstractPackageModel: set repositoryRoot relative to parent when parent is set using #setParent:.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 148
diff changeset
     9
    call vcsetup.bat
9fe7ec430706 SCMAbstractPackageModel: set repositoryRoot relative to parent when parent is set using #setParent:.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 148
diff changeset
    10
    popd
43
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
    11
)
148
4cbb1c88d03b Builf files regenerated
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 43
diff changeset
    12
@SET DEFINES=
4cbb1c88d03b Builf files regenerated
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 43
diff changeset
    13
@REM Kludge got Mercurial, cannot be implemented in Borland make
4cbb1c88d03b Builf files regenerated
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 43
diff changeset
    14
@FOR /F "tokens=*" %%i in ('hg root') do SET HGROOT=%%i
4cbb1c88d03b Builf files regenerated
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 43
diff changeset
    15
@IF "%HGROOT%" NEQ "" SET DEFINES=%DEFINES% "-DHGROOT=%HGROOT%"
4cbb1c88d03b Builf files regenerated
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 43
diff changeset
    16
make.exe -N -f bc.mak -DUSEVC=1 %DEFINES% %*
43
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
    17
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
    18
148
4cbb1c88d03b Builf files regenerated
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 43
diff changeset
    19
4cbb1c88d03b Builf files regenerated
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 43
diff changeset
    20