#!/bin/bash

## Copyright (C) 2012 - 2025 ENCRYPTED SUPPORT LLC <adrelanos@whonix.org>
## See the file COPYING for copying conditions.

## standalone script
## manual use for now only

set -x
set -o errexit
set -o nounset
set -o pipefail
set -o errtrace
shopt -s inherit_errexit

true "INFO: Currently running script: ${BASH_SOURCE[0]} $*"

[ -n "${XZ_OPT:-}" ] || XZ_OPT="--threads=8"
export XZ_OPT

tar \
   --create \
   --verbose \
   --owner=0 --group=0 --numeric-owner \
   --mode=go=rX,u+rw,a-s \
   --sort=name \
   --sparse \
   --mtime='2015-10-21 00:00Z' \
   --xz \
   --directory="./" \
   --file "./derivative-maker.tar.xz" \
   ./derivative-maker
