* app.c (do_scrub_begin): In MRI mode, set lex of ' to
[deliverable/binutils-gdb.git] / Pack-A-Progressive
CommitLineData
5898af2c
DHW
1#!/bin/sh
2CC=gcc
3
4set -x
5set -e
6
7if [ $# != 3 ] ; then
8 echo Usage: $0 release host /dev/norewindtape
9 exit 1
10fi
11
12release=$1
13host=$2
14tape=$3
15
16cd ${host}
17mt -f ${tape} ret
18mt -f ${tape} rew
19/bin/tar cf ${tape} Install
20
21cat > /tmp/blockit.c <<'e!o!f'
22#include <stdio.h>
23
24#define BLOCKSIZE (1024 * 62)
25
26main() {
27 long c;
28 long i = 0;
29 long j;
30
31 setvbuf (stdout, (char *)NULL, _IOFBF, BLOCKSIZE);
32
33 while ((c = getchar()) != EOF) {
34 if (ferror(stdin)) {
35 perror("on getchar");
36 return(1);
37 } /* on error */
38
39 putchar(c);
40
41 if (ferror(stdout)) {
42 perror("on putchar");
43 return(1);
44 } /* on error */
45
46 ++i;
47 } /* while there is input */
48
49 for (j = (BLOCKSIZE - (i % BLOCKSIZE)); j; --j) {
50 putchar(0);
51
52 if (ferror(stdout)) {
53 perror("on putchar");
54 return(1);
55 } /* on error */
56 } /* pad */
57
58 return(0);
59}
60e!o!f
61(cd /tmp; ${CC} -o blockit blockit.c)
62/bin/tar cf - ${release} | compress -vV | /tmp/blockit > ${tape}
63mt -f ${tape} asf 0
64tar tvf ${tape}
65dd bs=62k if=${tape} | compress -d | /bin/tar tvvf -
66rm -f /tmp/blockit /tmp/blockit.c
67mt -f ${tape} rew
This page took 0.106937 seconds and 4 git commands to generate.