package.sh

Mon, 06 May 2024 20:04:53 -0500

author
Tuomo Valkonen <tuomov@iki.fi>
date
Mon, 06 May 2024 20:04:53 -0500
changeset 64
910a99e4c099
parent 55
49cc73ebf939
permissions
-rw-r--r--

Increment version to 2.0.1

#!/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