Re: [AD] zipup script broken.

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On 07 Jun 2001, Henrik Stokseth <hstokset@xxxxxxxxxx> wrote:
> 
> [%1] == [--quick] should be rewritten to %1 == --quick 

No, that will break if %1 is the empty string (IIRC).

> and
> translated into test [$1 eq "--quick"]; or something like that...
> don't have the bash manual before me right now.

Unnecessary, since zipup.sh won't ever run with --quick.  Attached
is a patch that just removes the unused lines.  Commit if it works.

-- 
tjaden@xxxxxxxxxx - http://www.alphalink.com.au/~tjaden/
OATAMATOPOIEA.  The sound that the cereal "Captain Crunch" makes when you
pour milk over it.  -- Rich Hall, "Sniglets"
Index: zipup.sh
===================================================================
RCS file: /cvsroot/alleg/allegro/misc/zipup.sh,v
retrieving revision 1.12
diff -u -r1.12 zipup.sh
--- zipup.sh	2001/05/24 16:43:48	1.12
+++ zipup.sh	2001/06/08 06:14:04
@@ -79,6 +79,8 @@
    # batch to shell syntax
    sed -e "/^@echo/d" \
        -e "/^rem/d" \
+       -e "/^if \[%1\] == \[--quick\] goto done/d" \
+       -e "/^:done/d" \
        -e "s/^echo \([^>]*\)\(.*\)/echo \"\1\"\2/; s/ \">/\" >/" \
        -e "s/^del/rm/; s/ > nul//" \
        -e "s/^copy/cp/; s/ > nul//" \


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/