mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-21 06:45:29 -06:00
Note: This does not modify the configure script, which is a source of a lot of the remaining shellcheck warnings, because it comes from autoconf and so it makes little sense to try to fix it here. Also, it does not modify the scripts in contrib, because they possibly are maintained at some other place. Similarly with the other scripts that don't appear to be called from any of the makefiles.
12 lines
363 B
Bash
Executable file
12 lines
363 B
Bash
Executable file
#!/bin/sh
|
|
# This file is part of Firejail project
|
|
# Copyright (C) 2014-2021 Firejail Authors
|
|
# License GPL v2
|
|
|
|
set -e
|
|
|
|
sed "s/VERSION/$1/g" "$2" > "$3"
|
|
MONTH="$(LC_ALL=C date -u --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%b)"
|
|
sed -i "s/MONTH/$MONTH/g" "$3"
|
|
YEAR="$(LC_ALL=C date -u --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y)"
|
|
sed -i "s/YEAR/$YEAR/g" "$3"
|