Skip to content

Commit

Permalink
Exclude .git from reloc tarballs and update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
xrchz committed Dec 29, 2017
1 parent 7321dcb commit 73c10a8
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions make-relocatable-tarball.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,28 @@
set -e
NAME=cakeml-$1
HOLDIR=$(cat ${NAME}/HOLDIR)
tar --create --file ${NAME}.tar --exclude-from="${HOLDIR}/tools-poly/rebuild-excludes.txt" --exclude="${HOLDIR}/help/Docfiles" --exclude="${HOLDIR}/help/theorygraph" --transform="s|^${HOLDIR}|${NAME}/HOL|r" ${HOLDIR}
tar --append --file ${NAME}.tar --exclude-from="${NAME}/developers/rebuild-excludes" --transform="s|^${NAME}|${NAME}/cakeml|r" ${NAME}
tar --create --file ${NAME}.tar --exclude-from="${HOLDIR}/tools-poly/rebuild-excludes.txt" --exclude="${HOLDIR}/.git" --exclude="${HOLDIR}/help/Docfiles" --exclude="${HOLDIR}/help/theorygraph" --transform="s|^${HOLDIR}|${NAME}/HOL|r" ${HOLDIR}
tar --append --file ${NAME}.tar --exclude-from="${NAME}/developers/rebuild-excludes" --exclude="${NAME}/.git" --transform="s|^${NAME}|${NAME}/cakeml|r" ${NAME}
gzip ${NAME}.tar
rsync -Pvz ${NAME}.tar.gz [email protected]:/strongspace/xrchz/public/

# Developer Recipe
#
# 1. download stuff
# 2. untar working directories in fresh locations
# 1. Download http://strongspace.com/xrchz/public/cakeml-XXX.tar.gz
# 2. tar -xzf cakeml-XXX.tar.gz && cd cakeml-XXX
# 3. rebuild
# - HOL will require
# - HOL:
# 1. poly --script tools/smart-configure.sml
# 2. bin/build --relocbuild --nograph
# - CakeML
# 1. cd cakeml/`cat cakeml/resume`
# 2. fix Lem stuff: remove addancs dependencies in semantics/Holmakefile
# This will eventually fail complaining about
# missing help/Docfiles/HTML - that is OK
# - CakeML:
# 1. Manually build some heaps (until https://github.com/CakeML/cakeml/issues/389 is solved):
# cd cakeml/semantics/proofs
# /path/to/the/above/HOL/bin/Holmake --relocbuild heap
# cd ../..
# 2. cd $(cat resume)
# 3. /path/to/the/above/HOL/bin/Holmake --relocbuild
# 4. After hacking, you could copy your .git into the cakeml directory
# (from a working directory checked out to the the correct branch)
# to make commits.

0 comments on commit 73c10a8

Please sign in to comment.