From: Ben Gras Date: Fri, 16 Sep 2005 14:30:54 +0000 (+0000) Subject: Made a smallbunzip2 X-Git-Tag: v3.1.0~68 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=4eac7dbbc9f4f34222388e607eff5b2777f9ace8;p=minix.git Made a smallbunzip2 --- diff --git a/commands/bzip2-1.0.3/Makefile b/commands/bzip2-1.0.3/Makefile index 0d0d4e9f0..77c94a7d7 100644 --- a/commands/bzip2-1.0.3/Makefile +++ b/commands/bzip2-1.0.3/Makefile @@ -8,7 +8,7 @@ ARFLAGS=cr RANLIB=ranlib LDFLAGS= -BIGFILES=-D_FILE_OFFSET_BITS=64 +BIGFILES=#-D_FILE_OFFSET_BITS=64 CFLAGS=-Wall -Winline -O -g $(BIGFILES) -Dlstat=stat # Where you want it installed when you do 'make install' @@ -74,8 +74,9 @@ install: bzip2 bzip2recover if ( test ! -d $(PREFIX_MAN) ) ; then mkdir -p $(PREFIX_MAN) ; fi if ( test ! -d $(PREFIX_MAN)/man1 ) ; then mkdir -p $(PREFIX_MAN)/man1 ; fi if ( test ! -d $(PREFIX_INC) ) ; then mkdir -p $(PREFIX_INC) ; fi - install -o bin bzip2 $(PREFIX_BIN)/bzip2 - install -o bin bzip2 $(PREFIX_BIN)/bunzip2 + install -S 8M -o bin bzip2 $(PREFIX_BIN)/bzip2 + install -S 4M -o bin bzip2 $(PREFIX_BIN)/bunzip2 + install -S 2450k -o bin bzip2 $(PREFIX_BIN)/smallbunzip2 install -o bin bzip2 $(PREFIX_BIN)/bzcat install -o bin bzip2recover $(PREFIX_BIN)/bzip2recover chmod a+x $(PREFIX_BIN)/bzip2 diff --git a/commands/bzip2-1.0.3/bzip2.c b/commands/bzip2-1.0.3/bzip2.c index 79f87a519..ad1b28d3e 100644 --- a/commands/bzip2-1.0.3/bzip2.c +++ b/commands/bzip2-1.0.3/bzip2.c @@ -1938,6 +1938,10 @@ IntNative main ( IntNative argc, Char *argv[] ) srcMode = (numFileNames == 0) ? SM_I2O : SM_F2O; } + if(strstr ( progName, "small" ) != 0) { + smallMode = True; + } + /*-- Look at the flags. --*/ for (aa = argList; aa != NULL; aa = aa->link) {