<commit_before>#!/bin/bash

#######################
# get latest and build
#######################
#hg pull
#hg update --clean
export VERSION=`grep "VERSION\s*=\s*" org/dazeend/harmonium/Harmonium.java | grep -o "[0-9]*\.[0-9]*\.[0-9]*"`
echo Building release archives for version ${VERSION}...
#./rev-update.sh org/dazeend/harmonium/Harmonium.java
#./build.sh


if [ -e Harmonium ]
then
rm -rf Harmonium
fi

#####################
# build linux tarball
#####################
mkdir Harmonium
cp CHANGELOG Harmonium/
cp COPYING Harmonium/
cp linux-INSTALL Harmonium/INSTALL
cp linux-UNINSTALL Harmonium/UNINSTALL
cp linux-UPGRADE Harmonium/UPGRADE
cp README Harmonium/
cp USAGE Harmonium/
cd Harmonium
flip -u CHANGELOG COPYING INSTALL UNINSTALL UPGRADE README USAGE
cd ..
cp Harmonium.jar Harmonium/

mkdir Harmonium/bin
cp wrapper/harmonium Harmonium/bin/
cp wrapper/wrapper Harmonium/bin/

mkdir Harmonium/conf
cp conf/linux-wrapper.conf Harmonium/conf/wrapper.conf

mkdir Harmonium/lib
cp libs/* Harmonium/lib/
cp wrapper/libwrapper.so Harmonium/lib/
cp wrapper/linux-wrapper.jar Harmonium/lib/wrapper.jar

mkdir Harmonium/logs

export LINUXFILE=harmonium-linux-${VERSION}.tar.gz
if [ -f ${LINUXFILE} ]
then
rm ${LINUXFILE}
fi
tar czf ${LINUXFILE} Harmonium

rm -rf Harmonium


#####################
# build windows zip
#####################
mkdir Harmonium
cp CHANGELOG Harmonium/
cp COPYING Harmonium/
cp win-INSTALL Harmonium/INSTALL
cp win-UNINSTALL Harmonium/UNINSTALL
cp win-UPGRADE Harmonium/UPGRADE
cp README Harmonium/
cp USAGE Harmonium/
cd Harmonium
flip -m CHANGELOG COPYING INSTALL UNINSTALL UPGRADE README USAGE
cd ..
cp Harmonium.jar Harmonium/

mkdir Harmonium/bin
cp wrapper/*.bat Harmonium/bin/
cp wrapper/wrapper.exe Harmonium/bin/

mkdir Harmonium/conf
cp conf/win-wrapper.conf Harmonium/conf/wrapper.conf

mkdir Harmonium/lib
cp libs/* Harmonium/lib/
cp wrapper/wrapper.dll Harmonium/lib/
cp wrapper/win-wrapper.jar Harmonium/lib/wrapper.jar

mkdir Harmonium/logs

export WINFILE=harmonium-windows-${VERSION}.zip
if [ -f ${WINFILE} ]
then
rm ${WINFILE}
fi
zip -qr ${WINFILE} Harmonium
rm -rf Harmonium
<commit_msg>Un-comment build script get latest stuff<commit_after>#!/bin/bash

#######################
# get latest and build
#######################
hg pull
hg update --clean
export VERSION=`grep "VERSION\s*=\s*" org/dazeend/harmonium/Harmonium.java | grep -o "[0-9]*\.[0-9]*\.[0-9]*"`
echo Building release archives for version ${VERSION}...
./rev-update.sh org/dazeend/harmonium/Harmonium.java
./build.sh


if [ -e Harmonium ]
then
rm -rf Harmonium
fi

#####################
# build linux tarball
#####################
mkdir Harmonium
cp CHANGELOG Harmonium/
cp COPYING Harmonium/
cp linux-INSTALL Harmonium/INSTALL
cp linux-UNINSTALL Harmonium/UNINSTALL
cp linux-UPGRADE Harmonium/UPGRADE
cp README Harmonium/
cp USAGE Harmonium/
cd Harmonium
flip -u CHANGELOG COPYING INSTALL UNINSTALL UPGRADE README USAGE
cd ..
cp Harmonium.jar Harmonium/

mkdir Harmonium/bin
cp wrapper/harmonium Harmonium/bin/
cp wrapper/wrapper Harmonium/bin/

mkdir Harmonium/conf
cp conf/linux-wrapper.conf Harmonium/conf/wrapper.conf

mkdir Harmonium/lib
cp libs/* Harmonium/lib/
cp wrapper/libwrapper.so Harmonium/lib/
cp wrapper/linux-wrapper.jar Harmonium/lib/wrapper.jar

mkdir Harmonium/logs

export LINUXFILE=harmonium-linux-${VERSION}.tar.gz
if [ -f ${LINUXFILE} ]
then
rm ${LINUXFILE}
fi
tar czf ${LINUXFILE} Harmonium

rm -rf Harmonium


#####################
# build windows zip
#####################
mkdir Harmonium
cp CHANGELOG Harmonium/
cp COPYING Harmonium/
cp win-INSTALL Harmonium/INSTALL
cp win-UNINSTALL Harmonium/UNINSTALL
cp win-UPGRADE Harmonium/UPGRADE
cp README Harmonium/
cp USAGE Harmonium/
cd Harmonium
flip -m CHANGELOG COPYING INSTALL UNINSTALL UPGRADE README USAGE
cd ..
cp Harmonium.jar Harmonium/

mkdir Harmonium/bin
cp wrapper/*.bat Harmonium/bin/
cp wrapper/wrapper.exe Harmonium/bin/

mkdir Harmonium/conf
cp conf/win-wrapper.conf Harmonium/conf/wrapper.conf

mkdir Harmonium/lib
cp libs/* Harmonium/lib/
cp wrapper/wrapper.dll Harmonium/lib/
cp wrapper/win-wrapper.jar Harmonium/lib/wrapper.jar

mkdir Harmonium/logs

export WINFILE=harmonium-windows-${VERSION}.zip
if [ -f ${WINFILE} ]
then
rm ${WINFILE}
fi
zip -qr ${WINFILE} Harmonium
rm -rf Harmonium

{'fraction_non_alphanumeric': 0.1556900162904352, 'fraction_numerical': 0.0027926460321154294, 'mean_word_length': 4.723035952063915, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1149481', 'n_tokens_mistral': 1622, 'n_tokens_neox': 1415, 'n_words': 407}