pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/cdpack/files minor portability fix and minor ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3ae480af48aa
branches:  trunk
changeset: 538098:3ae480af48aa
user:      dmcmahill <dmcmahill%pkgsrc.org@localhost>
date:      Mon Jan 28 23:03:48 2008 +0000

description:
minor portability fix and minor bug fix (tested for the presence of the wrong file)

diffstat:

 pkgtools/cdpack/files/cdpack.sh |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 96156c412091 -r 3ae480af48aa pkgtools/cdpack/files/cdpack.sh
--- a/pkgtools/cdpack/files/cdpack.sh   Mon Jan 28 20:36:38 2008 +0000
+++ b/pkgtools/cdpack/files/cdpack.sh   Mon Jan 28 23:03:48 2008 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh
-# $NetBSD: cdpack.sh,v 1.11 2007/11/28 16:18:01 mishka Exp $
+# $NetBSD: cdpack.sh,v 1.12 2008/01/28 23:03:48 dmcmahill Exp $
 #
 # Copyright (c) 2001, 2002, 2003, 2005 Dan McMahill, All rights reserved.
 #
@@ -595,7 +595,7 @@
        (cd ${cddir}/${cdname} && cp $indexf .index)
     fi
 
-    if [ -f $indexf ]; then
+    if [ -f $restricted ]; then
        (cd ${cddir}/${cdname} &&  cp $restricted .restricted)
     fi
 
@@ -650,7 +650,7 @@
        echo "mkisofs failed"
        clean_and_exit
     fi
-    cdn=$(($cdn + 1))
+    cdn=`${EXPR} $cdn + 1`
 done
 
 echo "ISO Images are available in $cddir"



Home | Main Index | Thread Index | Old Index