File indexing completed on 2024-05-19 15:56:50
0001 #!/usr/bin/env bash 0002 0003 set -e 0004 0005 export GIT_CLONE_ARGS="--depth 1 --single-branch" 0006 export FLATPAK_DIR="$(readlink -f $(dirname $0))" 0007 cd ${FLATPAK_DIR} 0008 0009 if [ ! -d flatpak-builder-tools ]; then 0010 git clone ${GIT_CLONE_ARGS} https://github.com/flatpak/flatpak-builder-tools 0011 else 0012 git -C flatpak-builder-tools pull 0013 fi 0014 if [ ! -d corrosion ]; then 0015 git clone ${GIT_CLONE_ARGS} https://github.com/AndrewGaspar/corrosion 0016 else 0017 git -C corrosion pull 0018 fi 0019 0020 ./flatpak-builder-tools/cargo/flatpak-cargo-generator.py -o corrosion-generated-sources.json corrosion/generator/Cargo.lock 0021 ./flatpak-builder-tools/cargo/flatpak-cargo-generator.py -o generated-sources.json ../Cargo.lock