-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
100 changed files
with
90,696 additions
and
88,032 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
0.2.2 | ||
* Added an explicit include check in configure.ac for all used C++11 header files. | ||
* The special command-line flags --help and --version no longer result in a non-zero exit status. | ||
* Removed the need for dr::Pointer<T> and dr::Pointers<T>. | ||
* Added the ability for command-line options to optionally fallback to a positional argument value for filling if an explicit flag was not provided. | ||
|
||
0.2.1 | ||
* Initial public release. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2012. Tim Dawborn, James Curran, The University of Sydney. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1 @@ | ||
1: Compile | ||
|
||
$ make depends | ||
$ make | ||
|
||
= Gotchas = | ||
|
||
* Running on versions of Mac OS X may mean you don't have clang available in xcode. | ||
* Download binary (tested with LLVM 3.1) from http://llvm.org/releases/download.html#3.1 | ||
* Unpack and add the bin directory to $PATH | ||
|
||
= Building, deploying and installing source distributions = | ||
|
||
1: Build a virtualenv | ||
virtualenv --distribute ve | ||
source ve/bin/activate | ||
|
||
2: Build the source distribution (or just run publish.sh) | ||
./ve/bin/python setup.py clean sdist | ||
cp dist/*gz /n/ch2/var/www/sites/downloads/packages/pypi/schwa | ||
./ve/bin/python setup.py clean --all | ||
|
||
3: This can be installed in another virtualenv directly or as a "requires" item by pip from the schwa index. | ||
./ve/bin/pip install schwa --extra-index-url http://downloads.schwa.org/packages/pypi --upgrade | ||
Documentation can be found on the GitHub wiki page: https://github.com/schwa-lab/libschwa/wiki |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/bin/bash | ||
# http://nvie.com/posts/a-successful-git-branching-model/ | ||
set -e | ||
|
||
M4_VERSION_FILE='m4/version.m4' | ||
M4_VERSION_SET_FILE='m4/version-set.m4' | ||
|
||
|
||
if [[ ${#} -ne 4 ]]; then | ||
echo "Usage: ${0} major minor patch date" | ||
echo "This script should be called by dist/create-release-branch.sh" | ||
exit 1 | ||
fi | ||
|
||
# Relocate to the top level project directory. | ||
cd $(dirname ${0})/.. | ||
|
||
# Create the version.m4 file. | ||
cat > ${M4_VERSION_FILE} <<EOF | ||
dnl Product version for AC_INIT. Maintained by dist/bump-version.sh | ||
${1}.${2}.${3} | ||
EOF | ||
|
||
# Create the version-set.m4 file. | ||
cat > ${M4_VERSION_SET_FILE} <<EOF | ||
dnl Product version for header files. Maintained by dist/bump-version.sh | ||
VERSION_MAJOR=${1} | ||
VERSION_MINOR=${2} | ||
VERSION_PATCH=${3} | ||
VERSION_STRING='"${1}.${2}.${3} (${4})"' | ||
AC_SUBST(VERSION_MAJOR) | ||
AC_SUBST(VERSION_MINOR) | ||
AC_SUBST(VERSION_PATCH) | ||
AC_SUBST(VERSION_STRING) | ||
VERSION_NOPATCH=${1}.${2} | ||
AC_SUBST(VERSION_NOPATCH) | ||
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
#!/bin/bash | ||
# http://www.webupd8.org/2010/01/how-to-create-deb-package-ubuntu-debian.html | ||
set -e | ||
|
||
MAINTAINER_NAME='Tim Dawborn' | ||
MAINTAINER_EMAIL='[email protected]' | ||
WORKING_DIR=/tmp/create-deb-package | ||
|
||
|
||
# Relocate to the top level project directory. | ||
cd $(dirname ${0})/.. | ||
|
||
# Check required dependencies for building a deb file. | ||
sudo apt-get install build-essential autoconf automake autotools-dev dh-make debhelper devscripts fakeroot xutils lintian pbuilder | ||
|
||
# Create the distribution. | ||
make dist | ||
version=$(tail -n +2 m4/version.m4) | ||
|
||
# Create and relocate to the working directory. | ||
rm -rf ${WORKING_DIR} | ||
mkdir -p ${WORKING_DIR} | ||
cp libschwa-${version}.tar.gz ${WORKING_DIR} | ||
cd ${WORKING_DIR} | ||
|
||
# Extract the tarball and go into the extracted folder. | ||
tar xzf libschwa-${version}.tar.gz | ||
cd libschwa-${version} | ||
|
||
# Start the debianisation. | ||
dh_make --email "${MAINTAINER_EMAIL}" --multi --file ../libschwa-${version}.tar.gz | ||
|
||
# Update the generated debian files. | ||
cat > debian/control <<EOF | ||
Source: libschwa | ||
Section: unknown | ||
Priority: extra | ||
Maintainer: ${MAINTAINER_NAME} <${MAINTAINER_EMAIL}> | ||
Build-Depends: debhelper (>= 8.0.0), autotools-dev, libgcc-4.8-dev, libzmq3-dev | ||
Standards-Version: 3.9.2 | ||
Homepage: https://github.com/schwa-lab/libschwa | ||
Package: libschwa | ||
Architecture: any | ||
Depends: \${shlibs:Depends}, \${misc:Depends} | ||
Description: Schwa Lab core NLP tools. | ||
Schwa Lab core NLP tools. | ||
EOF | ||
cp LICENCE debian/copyright | ||
|
||
# Build the source as a debian package. | ||
dpkg-buildpackage -rfakeroot | ||
|
||
# Install the generated deb file on packages.schwa.org. | ||
read -r -p 'Copy deb file to packages.schwa.org? [y/N] ' response | ||
if [[ ${response} =~ ^([yY][eE][sS]|[yY])$ ]]; then | ||
scp ../libschwa*.deb deb@ch2:packages/ubuntu/pool/main/precise | ||
ssh deb@ch2 'packages/ubuntu/update-amd64.sh precise' | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
#!/bin/bash | ||
# http://nvie.com/posts/a-successful-git-branching-model/ | ||
set -e | ||
|
||
M4_VERSION_FILE='m4/version.m4' | ||
M4_VERSION_SET_FILE='m4/version-set.m4' | ||
|
||
|
||
# Relocate to the top level project directory. | ||
cd $(dirname ${0})/.. | ||
|
||
# Try and work out what the new version should be. | ||
version_major=0 | ||
version_minor=0 | ||
version_patch=0 | ||
current_version_string='unknown' | ||
if test -f ${M4_VERSION_SET_FILE}; then | ||
version_major=$(grep '^VERSION_MAJOR=' ${M4_VERSION_SET_FILE} | cut -d = -f 2) | ||
version_minor=$(($(grep '^VERSION_MINOR=' ${M4_VERSION_SET_FILE} | cut -d = -f 2) + 1)) | ||
version_patch=0 | ||
current_version_string=$(grep '^VERSION_STRING=' ${M4_VERSION_SET_FILE} | cut -d = -f 2) | ||
fi | ||
if [[ ${#} -ne 0 ]]; then | ||
version_major=${1} | ||
shift | ||
fi | ||
if [[ ${#} -ne 0 ]]; then | ||
version_minor=${1} | ||
shift | ||
fi | ||
if [[ ${#} -ne 0 ]]; then | ||
version_patch=${1} | ||
shift | ||
fi | ||
version_date="$(date +%Y-%m-%d)" | ||
version="${version_major}.${version_minor}.${version_patch}" | ||
version_string="'\"${version} (${version_date})\"'" | ||
|
||
# Confirm before going ahead. | ||
echo "Current version: ${current_version_string}" | ||
echo " New version: ${version_string}" | ||
read -r -p 'Are you sure? [y/N] ' response | ||
if [[ ${response} =~ ^([yY][eE][sS]|[yY])$ ]]; then | ||
true | ||
else | ||
exit 0 | ||
fi | ||
|
||
# Create the release branch. | ||
git checkout -b release-${version} develop | ||
|
||
# Bump the version and commit the change. | ||
./dist/bump-version.sh ${version_major} ${version_minor} ${version_patch} "${version_date}" | ||
git commit -a -m "Bumped version to ${version}." | ||
|
||
echo "Release branch successfully created and the version has been bumped to ${version}." | ||
echo "Once you're ready to release, call dist/finish-release-branch.sh." |
Oops, something went wrong.