Further improve 1990/jaw/shark.sh
The script now deletes the tarball in the entry's directory. The README.md file now suggests one use the try.sh script.
This commit is contained in:
1 parent
8e18a44c88
commit
9a92fcfca3
3 files changed
+10
-3
No files matched your search
@@ -38,6 +38,13 @@ echo "Quartz glyph jocks vend, fix, BMW." | compress | ./btoa | ./jaw
|
|||||||
which should apply the identity transformation to a minimal holoalphabetic
|
which should apply the identity transformation to a minimal holoalphabetic
|
||||||
sentence.
|
sentence.
|
||||||
|
|
||||||
|
|
||||||
|
Also try:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
./try.sh
|
||||||
|
```
|
||||||
|
|
||||||
## Judges' remarks:
|
## Judges' remarks:
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -10,7 +10,7 @@ for i in "${@?${usage?$0 file...}}";do<"$i"||exit;done
|
|||||||
# "Cleverly he dialed from within." -- D. Van Vliet, "Trout Mask Replica"
|
# "Cleverly he dialed from within." -- D. Van Vliet, "Trout Mask Replica"
|
||||||
#
|
#
|
||||||
PATH=$PATH:.:.. a=atob m=unshark z=zcat
|
PATH=$PATH:.:.. a=atob m=unshark z=zcat
|
||||||
r="rm -f $a $m* $z" v="cc -Wno-implicit-function-declaration -o $z $m.c"
|
r="rm -f $a $m* ../$m.tar $z" v="cc -Wno-implicit-function-declaration -Wno-implicit-int -o $z $m.c"
|
||||||
trap '$r;exit 1' 1 2 13 15
|
trap '$r;exit 1' 1 2 13 15
|
||||||
echo decoding...
|
echo decoding...
|
||||||
(:|compress|btoa|./$a|./$z)2>$m>&2||(sed '1,9s/./#define & /
|
(:|compress|btoa|./$a|./$z)2>$m>&2||(sed '1,9s/./#define & /
|
||||||
@@ -43,5 +43,5 @@ Z,h@=w;n=8;f=Q+e;i=o=HIo<0)X,1;P(i)WH+1){Iw==Q&e){Z;m=n=8;f=QIH<0)X}
|
|||||||
c=wIw>=f)U++=i,w=oWw>=Q)U++=h@,w=t@;P(i=h@)Wp>D+Q)P(*--p)
|
c=wIw>=f)U++=i,w=oWw>=Q)U++=h@,w=t@;P(i=h@)Wp>D+Q)P(*--p)
|
||||||
I(w=f)<1l<<k)t@=o,h[f++]=i;o=c}X}
|
I(w=f)<1l<<k)t@=o,h[f++]=i;o=c}X}
|
||||||
_
|
_
|
||||||
($v);ln -f $z $a);./$a<<\w>./$m-&&./$z<./$m->./$m;tar xvf ../$m.tar&&$r
|
($v);echo 1>&2;ln -f $z $a);./$a<<\w>./$m-&&./$z<./$m->./$m;tar xvf ../$m.tar&&$r
|
||||||
Z
|
Z
|
||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
echo "Running shark.sh:"
|
echo "Running shark.sh:"
|
||||||
sh shark.sh shark.sh README.md jaw.c > receive || exit 1
|
sh shark.sh shark.sh README.md jaw.c try.sh > receive || exit 1
|
||||||
echo "Done."
|
echo "Done."
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user