www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 925d0d787b547c509fa99c8cb67611994d32fa95
parent a42e96d7730a3783eef998965dea6b4f881ecec2
Author: Georges Dupéron <georges.duperon@gmail.com>
Date:   Sat, 30 Jun 2018 16:52:00 +0200

Switch from tempfile to mktemp, as tempfile is deprecated

Diffstat:
Mtest/bochs.sh | 4++--
Mtest/virtualbox.sh | 2+-
Mutils/ansi-screenshots/ansi_screenshot.sh | 2+-
Mutils/ansi-screenshots/to_ansi.sh | 16++++++++--------
4 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/test/bochs.sh b/test/bochs.sh @@ -3,14 +3,14 @@ set -e os_file="example-os/os.sh" -bochsrc="$(tempfile)" +bochsrc="$(mktemp)" cat > "$bochsrc" <<EOF floppya: 1_44=${os_file}, status=inserted boot: floppy display_library: sdl EOF -bochscontinue="$(tempfile)" +bochscontinue="$(mktemp)" echo "continue" > "$bochscontinue" bochs -qf "$bochsrc" < "$bochscontinue" & diff --git a/test/virtualbox.sh b/test/virtualbox.sh @@ -2,7 +2,7 @@ set -e os_file="example-os/os.sh" -img_file="$(tempfile --suffix=".img")" +img_file="$(mktemp --suffix=".img")" vbox_dir="vbox_$(date +%s)-$$" vmname="automatic-os-test-$(date +%s)-$$" diff --git a/utils/ansi-screenshots/ansi_screenshot.sh b/utils/ansi-screenshots/ansi_screenshot.sh @@ -1,6 +1,6 @@ #!/bin/sh -screenshot="$(tempfile --suffix=".png")" +screenshot="$(mktemp --suffix=".png")" scrot "$screenshot" "$(dirname "$0")/to_ansi.sh" "$screenshot" 107 diff --git a/utils/ansi-screenshots/to_ansi.sh b/utils/ansi-screenshots/to_ansi.sh @@ -3,14 +3,14 @@ file="$1" width="$2" -mini_png="$(tempfile --suffix=".png")" -colors_gif="$(tempfile --suffix=".gif")" -indexed_gif="$(tempfile --suffix=".gif")" -indexed_pgm="$(tempfile --suffix=".pgm")" -odd_lines="$(tempfile --suffix=".odd")" -even_lines="$(tempfile --suffix=".even")" -odd_lines_px="$(tempfile --suffix=".odd.px")" -even_lines_px="$(tempfile --suffix=".even.px")" +mini_png="$(mktemp --suffix=".png")" +colors_gif="$(mktemp --suffix=".gif")" +indexed_gif="$(mktemp --suffix=".gif")" +indexed_pgm="$(mktemp --suffix=".pgm")" +odd_lines="$(mktemp --suffix=".odd")" +even_lines="$(mktemp --suffix=".even")" +odd_lines_px="$(mktemp --suffix=".odd.px")" +even_lines_px="$(mktemp --suffix=".even.px")" colors=(78,78,78 255,108,96 0,170,0 288,288,182 150,203,254 255,115,253 85,255,255 238,238,238 124,124,124 255,155,147 177,253,121 255,255,145 181,220,254 255,156,254 85,255,255 255,255,255) args=()