Skip to content

Instantly share code, notes, and snippets.

@hannesm
Created Dec 10, 2011
Embed
What would you like to do?
OD packaging
OD_VERSION=2011.1
OD_ARCH=<your-cpu-architecture>
OD_SYSTEM=<your-operating-system>
OD_SOURCES=<where-your-checkout-is>
OD_PLATFORM=$OD_ARCH-$OD_SYSTEM
cd $OD_SOURCES
./configure --prefix=/opt/opendylan-$OD_VERSION
make 3-stage-bootstrap
sudo make install
cd /opt/
chown -R root opendylan-$OD_VERSION
chgrp -R root opendylan-$OD_VERSION
tar cjf opendylan-$OD_VERSION-$OD_PLATFORM-debug-info.tar.bz2 opendylan-$OD_VERSION/build
cd opendylan-$OD_VERSION
rm -rf profiles build
cp $OD_SOURCES/License.txt .
cp $OD_SOURCES/packages/unix/make-dylan-app bin
cp $OD_SOURCES/packages/unix/README .
patch < $OD_SOURCES/packages/unix/README-$OD_SYSTEM.diff # (only on FreeBSD and MacOSX)
cd ..
tar cjf opendylan-$OD_VERSION-$OD_PLATFORM.tar.bz2 opendylan-$OD_VERSION
# the bin directory should contain 3 files: dylan-compiler, dswank and make-dylan-app!
# make install already copies sources!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment