mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
Fix bashisms
makepngs.sh relies on a Bash feature in one of its case statements, ";;&"; this should be made explicit in the shebang. intgamma.sh declares a function in a manner which may fail in non-Bash sh implementations, this patch uses the correct syntax. Based on a patch by Roflcopter4: https://github.com/joncampbell123/dosbox-x/pull/3850 Signed-off-by: Stephen Kitt <steve@sk2.org>
This commit is contained in:
parent
437b24a958
commit
9f9f8d8e63
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Make a set of test PNG files, MAKEPNG is the name of the makepng executable
|
# Make a set of test PNG files, MAKEPNG is the name of the makepng executable
|
||||||
# built from contrib/libtests/makepng.c
|
# built from contrib/libtests/makepng.c
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
# Function to print out a list of numbers as integers; the function truncates
|
# Function to print out a list of numbers as integers; the function truncates
|
||||||
# the integers which must be one-per-line.
|
# the integers which must be one-per-line.
|
||||||
function print(){
|
print(){
|
||||||
awk 'BEGIN{
|
awk 'BEGIN{
|
||||||
str = ""
|
str = ""
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user