git subrepo pull (merge) --force deps/libchdr
[pcsx_rearmed.git] / deps / libchdr / deps / zstd-1.5.5 / build / single_file_libs / create_single_file_decoder.sh
CommitLineData
648db22b 1#!/bin/sh
2
3# Where to find the sources
4ZSTD_SRC_ROOT="../../lib"
5
6# Amalgamate the sources
7echo "Amalgamating files..."
8# Using the faster Python script if we have 3.8 or higher
9if python3 -c 'import sys; assert sys.version_info >= (3,8)' 2>/dev/null; then
10 ./combine.py -r "$ZSTD_SRC_ROOT" -x legacy/zstd_legacy.h -o zstddeclib.c zstddeclib-in.c
11else
12 ./combine.sh -r "$ZSTD_SRC_ROOT" -x legacy/zstd_legacy.h -o zstddeclib.c zstddeclib-in.c
13fi
14# Did combining work?
15if [ $? -ne 0 ]; then
16 echo "Combine script: FAILED"
17 exit 1
18fi
19echo "Combine script: PASSED"