Fixe typos in androidmk.
Replace contitional with conditional. Test: androidmk_test.go Change-Id: Ic261701f4588b9b8b6d3560598831368c3422508
This commit is contained in:
@@ -208,7 +208,7 @@ func convertFile(filename string, buffer *bytes.Buffer) (string, []error) {
|
|||||||
file.errorf(x, "missing if before else")
|
file.errorf(x, "missing if before else")
|
||||||
continue
|
continue
|
||||||
} else if conds[len(conds)-1] == nil {
|
} else if conds[len(conds)-1] == nil {
|
||||||
file.errorf(x, "else from unsupported contitional")
|
file.errorf(x, "else from unsupported conditional")
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
conds[len(conds)-1].eq = !conds[len(conds)-1].eq
|
conds[len(conds)-1].eq = !conds[len(conds)-1].eq
|
||||||
@@ -217,7 +217,7 @@ func convertFile(filename string, buffer *bytes.Buffer) (string, []error) {
|
|||||||
file.errorf(x, "missing if before endif")
|
file.errorf(x, "missing if before endif")
|
||||||
continue
|
continue
|
||||||
} else if conds[len(conds)-1] == nil {
|
} else if conds[len(conds)-1] == nil {
|
||||||
file.errorf(x, "endif from unsupported contitional")
|
file.errorf(x, "endif from unsupported conditional")
|
||||||
conds = conds[:len(conds)-1]
|
conds = conds[:len(conds)-1]
|
||||||
} else {
|
} else {
|
||||||
if assignmentCond == conds[len(conds)-1] {
|
if assignmentCond == conds[len(conds)-1] {
|
||||||
|
@@ -504,9 +504,9 @@ endif # b==false
|
|||||||
// # b==false
|
// # b==false
|
||||||
// echo end
|
// echo end
|
||||||
//
|
//
|
||||||
// ANDROIDMK TRANSLATION ERROR: endif from unsupported contitional
|
// ANDROIDMK TRANSLATION ERROR: endif from unsupported conditional
|
||||||
// endif
|
// endif
|
||||||
// ANDROIDMK TRANSLATION ERROR: endif from unsupported contitional
|
// ANDROIDMK TRANSLATION ERROR: endif from unsupported conditional
|
||||||
// endif
|
// endif
|
||||||
`,
|
`,
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user