freebsd-ports/games/lordsawar/files/patch-create-lw-file
Max Brazhnikov af9d3235e3 Update to 0.1.9
PR:		ports/148428
Submitted by:	Alex Kozlov (maintainer)
2010-07-10 11:06:18 +00:00

12 lines
389 B
Text

Index: create-lw-file
@@ -1,8 +1,8 @@
-#!/bin/bash
+#!/bin/sh
# put the files given on the command line into a tarball with the same name as the first file in that list. that first file gets overwritten.
files=$*
-tmpdir=`mktemp --quiet --directory /tmp/lw-tar.XXXXX `
+tmpdir=`mktemp -q -d /tmp/lw-tar.XXXXX `
file=`basename $1`
if [ "x$tmpdir" != "x" ]; then
cp $files $tmpdir