<commit_before>#!/bin/sh

basedir=`dirname $0`
version=$(cat "$basedir/../version")

for f in `find $basedir/.. -name 'Info.plist.tmpl' -or -name 'Distribution.xml.tmpl'`; do
    if [ -f "$f" ]; then
        sed "s|PKGVERSION|$version|g" $f > `dirname $f`/`basename $f .tmpl`
    fi
done<commit_msg>support directory includes white space<commit_after>#!/bin/sh

basedir=`dirname $0`
version=$(cat "$basedir/../version")

find $basedir/.. \( -name 'Info.plist.tmpl' -or -name 'Distribution.xml.tmpl' \) -print0 | while IFS= read -r -d '' f; do
  echo $f
  if [ -f "$f" ]; then
    sed "s|PKGVERSION|$version|g" "$f" > `dirname "$f"`/`basename "$f" .tmpl`
  fi
done
{'fraction_non_alphanumeric': 0.21417797888386123, 'fraction_numerical': 0.004524886877828055, 'mean_word_length': 3.4266666666666667, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5286130', 'n_tokens_mistral': 271, 'n_tokens_neox': 260, 'n_words': 67}