Sha256: ac2a857c29c97261d28fb3863e3ced354ed5d5621b962659af02ea5d0b7162bb

Contents?: true

Size: 648 Bytes

Versions: 16

Compression:

Stored size: 648 Bytes

Contents

# Normalizes a pot file generated by xgettext, so we can compare new files
# to see if they've changed. Normalization removes creation date, and sets
# the charset to UTF-8.
#
# Usage:
#   cmake -DPOT_FILE=<pot_file_name> \
#         -DSOURCE_DIR=<CMAKE_CURRENT_SOURCE_DIR> \
#         -P normalize_pot.cmake

file(READ ${POT_FILE} FILE_CONTENT)
string(REPLACE "charset=CHARSET" "charset=UTF-8"
    FILE_CONTENT "${FILE_CONTENT}")
string(REGEX REPLACE "POT-Creation-Date: [^\\]*" "POT-Creation-Date: "
    FILE_CONTENT "${FILE_CONTENT}")
string(REPLACE "${SOURCE_DIR}/" "" FILE_CONTENT "${FILE_CONTENT}")
file(WRITE ${POT_FILE} "${FILE_CONTENT}")

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
facter-3.12.2.cfacter.20181217 ext/facter/leatherman/cmake/normalize_pot.cmake
facter-3.12.1.cfacter.20181031 ext/facter/leatherman/cmake/normalize_pot.cmake
facter-3.11.6.cfacter.20181031 ext/facter/leatherman/cmake/normalize_pot.cmake
facter-3.12.1.cfacter.20181023 ext/facter/leatherman/cmake/normalize_pot.cmake
facter-3.11.5.cfacter.20181022 ext/facter/leatherman/cmake/normalize_pot.cmake
facter-3.12.0.cfacter.20181004 ext/facter/leatherman/cmake/normalize_pot.cmake
facter-3.12.0.cfacter.20181001 ext/facter/leatherman/cmake/normalize_pot.cmake
facter-3.12.0.cfacter.20180918 ext/facter/leatherman/cmake/normalize_pot.cmake
facter-3.11.4.cfacter.20180821 ext/facter/leatherman/cmake/normalize_pot.cmake
facter-3.11.3.cfacter.20180716 ext/facter/leatherman/cmake/normalize_pot.cmake
facter-3.11.2.cfacter.20180612 ext/facter/leatherman/cmake/normalize_pot.cmake
facter-3.9.6.cfacter.20180612 ext/facter/leatherman/cmake/normalize_pot.cmake
facter-3.11.2.cfacter.20180606 ext/facter/leatherman/cmake/normalize_pot.cmake
facter-3.9.6.cfacter.20180606 ext/facter/leatherman/cmake/normalize_pot.cmake
facter-3.11.0.cfacter.20180319 ext/facter/leatherman/cmake/normalize_pot.cmake
cfacter-3.11.0.rc.20180314 ext/facter/leatherman/cmake/normalize_pot.cmake