https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
7 lines
225 B
Bash
Executable file
7 lines
225 B
Bash
Executable file
#! /usr/bin/env nix-shell
|
|
#! nix-shell -i bash -p common-updater-scripts python3
|
|
|
|
set -ueo pipefail
|
|
|
|
version="$(python "$(dirname "${BASH_SOURCE[0]}")"/latest_version.py)"
|
|
update-source-version dictdDBs.wiktionary "$version"
|