<target name="powershell.keywords">
<updateRegex
encoding="UTF-16"
item="version"
match="(ModuleVersion\s+=\s+)'[\d.]+"
replaceWith="\1'${version}"
>
<filelist>
<path>
<fileset
dir="${psModules.src}"
includes="**/*.psd1"
/>
</path>
</filelist>
</updateRegex>
<updateRegex
encoding="UTF-16"
item="copyright"
match="(Copyright[^\d]*)\d{4}"
replaceWith="\1${copyright}"
>
<filelist>
<path>
<fileset
dir="${psModules.src}"
includes="**/*.psd1"
/>
</path>
</filelist>
</updateRegex>
<echo>powershell.keywords complete.</echo>
</target>
|