fractal/scripts/cargo.sh
Daniel García Moreno 1905a2b5d1 i18n: bindtextdomain not hardcoded
I've added the locales path to the globals so we can now in the compile
time what directory is the translation to use in bindtextdomain

Closes https://gitlab.gnome.org/World/fractal/issues/89
2018-05-18 12:28:41 +02:00

12 lines
332 B
Bash
Executable file

#!/bin/sh
export FRACTAL_LOCALEDIR="$3"
if [[ $DEBUG = true ]]
then
echo "DEBUG MODE"
cargo build --manifest-path $1/Cargo.toml -p fractal-gtk && cp $1/target/debug/fractal-gtk $2
else
echo "RELEASE MODE"
cargo build --manifest-path $1/Cargo.toml --release -p fractal-gtk && cp $1/target/release/fractal-gtk $2
fi