blob: eb46655b158a564549a089eb8b75c59ee271abd2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/bin/bash
# Binary Resource Concatenator
# Copyright: 2021 Jaakko Keränen <jaakko.keranen@iki.fi>
# License: BSD 2-Clause
OUTPUT=--
SIZES=""
for fn in $*; do
if [ "$OUTPUT" = "--" ]; then
OUTPUT=$fn
rm -f ${OUTPUT}
else
vals=(`/bin/ls -l $fn`)
if [ "$SIZES" = "" ]; then
SIZES=${vals[4]}
else
SIZES=$SIZES\;${vals[4]}
fi
cat ${fn} >> ${OUTPUT}
fi
done
echo $SIZES
|