package.sh

Fri, 05 Jul 2024 14:48:02 -0500

author
Tuomo Valkonen <tuomov@iki.fi>
date
Fri, 05 Jul 2024 14:48:02 -0500
changeset 68
6e7fa0639be4
parent 55
49cc73ebf939
permissions
-rw-r--r--

Added tag v2.0.2 for changeset afeaa6f6d1ae

#!/bin/sh
#
# Script for packaging for Zenodo, including custom dependencies.
# Needs toml-cli; install it with cargo install toml-cli
#

version=$(toml get -r Project.toml version)
name="PredictPDPS-$version"
dir="$TMPDIR/$name"

hg archive "$dir"
hg archive -R ../ImageTools "$dir/ImageTools"
hg archive -R ../AlgTools "$dir/AlgTools"
perl -p -i -e 's:../(ImageTools|AlgTools):$1:' "$dir/Manifest.toml"

# Something creates .DS_Store files although they are not in the repo,
# so need to explicitly exclude them.
tar  cz --exclude .DS_Store -C "$TMPDIR" -f $name.tar.gz $name

mercurial