Author: soliton
Date: Mon Sep 1 00:23:55 2008
New Revision: 29147
URL: http://svn.gna.org/viewcvs/wesnoth?rev=29147&view=rev
Log:
* return to using sh after fixing the signals
Modified:
trunk/utils/mp-server/run_server
trunk/utils/wesnoth-optipng
Modified: trunk/utils/mp-server/run_server
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/utils/mp-server/run_server?rev=29147&r1=29146&r2=29147&view=diff
==============================================================================
--- trunk/utils/mp-server/run_server (original)
+++ trunk/utils/mp-server/run_server Mon Sep 1 00:23:55 2008
@@ -41,7 +41,7 @@
ulimit -c unlimited
# send the standard server message to the appropriate server when killing it
with ctrl+c
-trap "$HOME/bin/send_server_message $SERVER; sleep 2; killall wesnothd-$SERVER
-q; echo -n 'terminated: '; date; exit 0" SIGINT
+trap "$HOME/bin/send_server_message $SERVER; sleep 2; killall wesnothd-$SERVER
-q; echo -n 'terminated: '; date; exit 0" INT
while [ true ]
do
Modified: trunk/utils/wesnoth-optipng
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/utils/wesnoth-optipng?rev=29147&r1=29146&r2=29147&view=diff
==============================================================================
--- trunk/utils/wesnoth-optipng (original)
+++ trunk/utils/wesnoth-optipng Mon Sep 1 00:23:55 2008
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
#
# Script to strip ICC profiles from all png images and to recompress them
# afterwards via optipng
@@ -122,7 +122,7 @@
nice -n $opti_nice convert --help 2> /dev/null 1> /dev/null ||
report_absent_tool convert
# Set-up a trap to avoid leaving orphan tempfiles behind.
-trap user_int SIGHUP SIGINT SIGTERM
+trap user_int HUP INT TERM
filelist=$(find -iname "*.png")
for f in $filelist; do
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits