Skip to content

Instantly share code, notes, and snippets.

@hannesm
Created December 10, 2011 04:26
Show Gist options
  • Save hannesm/1454578 to your computer and use it in GitHub Desktop.
Save hannesm/1454578 to your computer and use it in GitHub Desktop.
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