| 225 | } |
| 226 | |
| 227 | bool cmFileCopier::CheckKeyword(std::string const& arg) |
| 228 | { |
| 229 | if (arg == "DESTINATION") { |
| 230 | if (this->CurrentMatchRule) { |
| 231 | this->NotAfterMatch(arg); |
| 232 | } else { |
| 233 | this->Doing = DoingDestination; |
| 234 | } |
| 235 | } else if (arg == "FILES_FROM_DIR") { |
| 236 | if (this->CurrentMatchRule) { |
| 237 | this->NotAfterMatch(arg); |
| 238 | } else { |
| 239 | this->Doing = DoingFilesFromDir; |
| 240 | } |
| 241 | } else if (arg == "PATTERN") { |
| 242 | this->Doing = DoingPattern; |
| 243 | } else if (arg == "REGEX") { |
| 244 | this->Doing = DoingRegex; |
| 245 | } else if (arg == "FOLLOW_SYMLINK_CHAIN") { |
| 246 | this->FollowSymlinkChain = true; |
| 247 | this->Doing = DoingNone; |
| 248 | } else if (arg == "EXCLUDE") { |
| 249 | // Add this property to the current match rule. |
| 250 | if (this->CurrentMatchRule) { |
| 251 | this->CurrentMatchRule->Properties.Exclude = true; |
| 252 | this->Doing = DoingNone; |
| 253 | } else { |
| 254 | this->NotBeforeMatch(arg); |
| 255 | } |
| 256 | } else if (arg == "PERMISSIONS") { |
| 257 | if (this->CurrentMatchRule) { |
| 258 | this->Doing = DoingPermissionsMatch; |
| 259 | } else { |
| 260 | this->NotBeforeMatch(arg); |
| 261 | } |
| 262 | } else if (arg == "FILE_PERMISSIONS") { |
| 263 | if (this->CurrentMatchRule) { |
| 264 | this->NotAfterMatch(arg); |
| 265 | } else { |
| 266 | this->Doing = DoingPermissionsFile; |
| 267 | this->UseGivenPermissionsFile = true; |
| 268 | } |
| 269 | } else if (arg == "DIRECTORY_PERMISSIONS") { |
| 270 | if (this->CurrentMatchRule) { |
| 271 | this->NotAfterMatch(arg); |
| 272 | } else { |
| 273 | this->Doing = DoingPermissionsDir; |
| 274 | this->UseGivenPermissionsDir = true; |
| 275 | } |
| 276 | } else if (arg == "USE_SOURCE_PERMISSIONS") { |
| 277 | if (this->CurrentMatchRule) { |
| 278 | this->NotAfterMatch(arg); |
| 279 | } else { |
| 280 | this->Doing = DoingNone; |
| 281 | this->UseSourcePermissions = true; |
| 282 | } |
| 283 | } else if (arg == "NO_SOURCE_PERMISSIONS") { |
| 284 | if (this->CurrentMatchRule) { |
no test coverage detected