diff options
author | Stan Shebs <shebs@codesourcery.com> | 1999-04-16 01:34:07 +0000 |
---|---|---|
committer | Stan Shebs <shebs@codesourcery.com> | 1999-04-16 01:34:07 +0000 |
commit | 071ea11e85eb9d529cc5eb3d35f6247466a21b99 (patch) | |
tree | 5deda65b8d7b04d1f4cbc534c3206d328e1267ec /Pack-A-Progressive | |
parent | 1730ec6b1848f0f32154277f788fb29f88d8475b (diff) | |
download | gdb-071ea11e85eb9d529cc5eb3d35f6247466a21b99.zip gdb-071ea11e85eb9d529cc5eb3d35f6247466a21b99.tar.gz gdb-071ea11e85eb9d529cc5eb3d35f6247466a21b99.tar.bz2 |
Initial creation of sourceware repository
Diffstat (limited to 'Pack-A-Progressive')
-rwxr-xr-x | Pack-A-Progressive | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/Pack-A-Progressive b/Pack-A-Progressive deleted file mode 100755 index 5b6f66a..0000000 --- a/Pack-A-Progressive +++ /dev/null @@ -1,67 +0,0 @@ -#!/bin/sh -CC=gcc - -set -x -set -e - -if [ $# != 3 ] ; then - echo Usage: $0 release host /dev/norewindtape - exit 1 -fi - -release=$1 -host=$2 -tape=$3 - -cd ${host} -mt -f ${tape} ret -mt -f ${tape} rew -/bin/tar cf ${tape} Install - -cat > /tmp/blockit.c <<'e!o!f' -#include <stdio.h> - -#define BLOCKSIZE (1024 * 62) - -main() { - long c; - long i = 0; - long j; - - setvbuf (stdout, (char *)NULL, _IOFBF, BLOCKSIZE); - - while ((c = getchar()) != EOF) { - if (ferror(stdin)) { - perror("on getchar"); - return(1); - } /* on error */ - - putchar(c); - - if (ferror(stdout)) { - perror("on putchar"); - return(1); - } /* on error */ - - ++i; - } /* while there is input */ - - for (j = (BLOCKSIZE - (i % BLOCKSIZE)); j; --j) { - putchar(0); - - if (ferror(stdout)) { - perror("on putchar"); - return(1); - } /* on error */ - } /* pad */ - - return(0); -} -e!o!f -(cd /tmp; ${CC} -o blockit blockit.c) -/bin/tar cf - ${release} | compress -vV | /tmp/blockit > ${tape} -mt -f ${tape} asf 0 -tar tvf ${tape} -dd bs=62k if=${tape} | compress -d | /bin/tar tvvf - -rm -f /tmp/blockit /tmp/blockit.c -mt -f ${tape} rew |