#! /bin/sh
-# deblob-check version 2009-12-07
+# deblob-check version 2009-12-08
# Inspired in gNewSense's find-firmware script.
# Written by Alexandre Oliva <lxoliva@fsfla.org>
i\\
::: $file :::
# s/{\\($sepx\\)\\?$blobfseq\\($sepx\\)\\?}[ ]*;/{\/*(DEBLOBBED)*\/};/g
- s/$bloblong/\/*(DEBLOBBED)*\//
+ s/$bloblong/\/*(DEBLOBBED)*\//g
p
}
g
s/\\(\\($bloblong[^\\n]*\\)\\+\\)\\([\\n].*\\)\\?$/\\1/
$v:narrowed to blob
# s/{\\($sepx\\)\\?$blobfseq\\($sepx\\)\\?}[ ]*;/{\/*(DEBLOBBED)*\/};/g
-s/$bloblong/\/*(DEBLOBBED)*\//
+s/$bloblong/\/*(DEBLOBBED)*\//g
p
g
s/\\(\\($bloblong[^\\n]*\\)\\+\\)//
s/^\\($lblobctx[^\\n]*\\($bloblong[^\\n]*\\)*\\)\\([\\n].*\\)\\?$/\\1/
$v:narrowed to blob
# s/{\\($sepx\\)\\?$blobfseq\\($sepx\\)\\?}[ ]*;/{\/*(DEBLOBBED)*\/};/g
-s/$bloblong/\/*(DEBLOBBED)*\//
+s/$bloblong/\/*(DEBLOBBED)*\//g
p
g
s/^\\($lblobctx[^\\n]*\\($bloblong[^\\n]*\\)*\\)//
$v:narrowed to match
/$bloblong/{
# s/{\\($sepx\\)\\?$blobfseq\\($sepx\\)\\?}[ ]*;/{\/*(DEBLOBBED)*\/};/g
- s/$bloblong/\/*(DEBLOBBED)*\//
+ s/$bloblong/\/*(DEBLOBBED)*\//g
}
p
g
s/\\(\\($bloblong[^\\n]*\\)\\+\\)\\([\\n].*\\)\\?$/\\1/
$v:narrowed to blob
# s/{\\($sepx\\)\\?$blobfseq\\($sepx\\)\\?}[ ]*;/{\/*(DEBLOBBED)*\/};/g
-s/$bloblong/\/*(DEBLOBBED)*\//
+s/$bloblong/\/*(DEBLOBBED)*\//g
p
g
s/\\(\\($bloblong[^\\n]*\\)\\+\\)//
s/^\\(\\($falsepos[^\\n]*\\|[^\\n]*$bloblong[^\\n]*\\)\\($bloblong[^\\n]*\\)*\\)\\([\\n].*\\)\\?$/\\1/
$v:narrowed to blob
# s/{\\($sepx\\)\\?$blobfseq\\($sepx\\)\\?}[ ]*;/{\/*(DEBLOBBED)*\/};/g
-s/$bloblong/\/*(DEBLOBBED)*\//
+s/$bloblong/\/*(DEBLOBBED)*\//g
p
g
s/^\\(\\($falsepos[^\\n]*\\|[^\\n]*$bloblong[^\\n]*\\)\\($bloblong[^\\n]*\\)*\\)//