<commit_before>#!/bin/bash

# remove old installers
rm Disk\ Image/*.pkg

./build.sh

GIT_VERSION=$(git --version | sed 's/git version //')
echo "Git version is $GIT_VERSION"

open "Git Installer.pmdoc/"

echo "Once the package is built, press a key"
read -n 1

./test_installer.sh

printf "$GIT_VERSION" | pbcopy

IMAGE_FILENAME="./git-$GIT_VERSION-intel-leopard.dmg" 
UNCOMPRESSED_IMAGE_FILENAME="./git-$GIT_VERSION-intel-leopard.uncompressed.dmg"
hdiutil create $UNCOMPRESSED_IMAGE_FILENAME -srcfolder "Disk Image" -volname "Git $GIT_VERSION Intel Leopard" -ov
hdiutil convert -format UDZO -o $IMAGE_FILENAME $UNCOMPRESSED_IMAGE_FILENAME
rm $UNCOMPRESSED_IMAGE_FILENAME

echo "Git Installer $GIT_VERSION - OS X - Leopard - Intel" | pbcopy
open "http://code.google.com/p/git-osx-installer/downloads/entry"
sleep 1<commit_msg>copy the image filename to the clipboard to make things fun<commit_after>#!/bin/bash

# remove old installers
rm Disk\ Image/*.pkg

./build.sh

GIT_VERSION=$(git --version | sed 's/git version //')
PACKAGE_NAME="git-$GIT_VERSION-intel-leopard"
IMAGE_FILENAME="git-$GIT_VERSION-intel-leopard.dmg" 

echo $PACKAGE_NAME | pbcopy
echo "Git version is $GIT_VERSION"

open "Git Installer.pmdoc/"

echo "Once the package is built, press a key"
read -n 1

./test_installer.sh

printf "$GIT_VERSION" | pbcopy

UNCOMPRESSED_IMAGE_FILENAME="git-$GIT_VERSION-intel-leopard.uncompressed.dmg"
hdiutil create $UNCOMPRESSED_IMAGE_FILENAME -srcfolder "Disk Image" -volname "Git $GIT_VERSION Intel Leopard" -ov
hdiutil convert -format UDZO -o $IMAGE_FILENAME $UNCOMPRESSED_IMAGE_FILENAME
rm $UNCOMPRESSED_IMAGE_FILENAME

echo "Git Installer $GIT_VERSION - OS X - Leopard - Intel" | pbcopy
open "http://code.google.com/p/git-osx-installer/downloads/entry"
sleep 1
{'fraction_non_alphanumeric': 0.11575381140598531, 'fraction_numerical': 0.002258610954263128, 'mean_word_length': 4.986486486486487, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5754776', 'n_tokens_mistral': 680, 'n_tokens_neox': 644, 'n_words': 159}