mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
make.sh: Modify update-contributors so that it will run with older version of awk
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -85,8 +85,8 @@ Ersan Yildirim,
|
|||||||
Stephan Feddersen,
|
Stephan Feddersen,
|
||||||
Joern-Ingo Weigert,
|
Joern-Ingo Weigert,
|
||||||
Alexander Koch,
|
Alexander Koch,
|
||||||
Wolfgang Apolinarski,
|
|
||||||
Stéphane Pautrel,
|
Stéphane Pautrel,
|
||||||
|
Wolfgang Apolinarski,
|
||||||
Alfred Haas,
|
Alfred Haas,
|
||||||
Lars Schuhmacher,
|
Lars Schuhmacher,
|
||||||
Rene Zingel,
|
Rene Zingel,
|
||||||
|
|||||||
11
make.sh
11
make.sh
@@ -897,9 +897,14 @@ update_contributors() {
|
|||||||
local contributors="$(contributors | paste -sd , - | sed -e "s/,/&\\\\n/g")"
|
local contributors="$(contributors | paste -sd , - | sed -e "s/,/&\\\\n/g")"
|
||||||
|
|
||||||
# Edit contributors into credits.cgi
|
# Edit contributors into credits.cgi
|
||||||
awk -i inplace \
|
local tmp="$(mktemp)"
|
||||||
"/<!-- CONTRIBUTORS -->/{ p=1; print; printf \"${contributors}\n\"}/<!-- END -->/{ p=0 } !p" \
|
|
||||||
"${BASEDIR}/html/cgi-bin/credits.cgi"
|
awk "/<!-- CONTRIBUTORS -->/{ p=1; print; printf \"${contributors}\n\"}/<!-- END -->/{ p=0 } !p" \
|
||||||
|
< "${BASEDIR}/html/cgi-bin/credits.cgi" > "${tmp}"
|
||||||
|
|
||||||
|
# Copy back modified content
|
||||||
|
cat "${tmp}" > "${BASEDIR}/html/cgi-bin/credits.cgi"
|
||||||
|
unlink "${tmp}"
|
||||||
|
|
||||||
print_status DONE
|
print_status DONE
|
||||||
return 0
|
return 0
|
||||||
|
|||||||
Reference in New Issue
Block a user