You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
217 B
23 lines
217 B
#!/bin/bash
|
|
|
|
FILES=$1
|
|
: ${FILES:=./testFiles/*}
|
|
|
|
echo {
|
|
|
|
FIRST=1
|
|
for file in $FILES
|
|
do
|
|
if [ $FIRST -eq 1 ]
|
|
then
|
|
FIRST=0
|
|
else
|
|
echo ,
|
|
fi
|
|
|
|
echo -n \"`basename $file`\" : \"0x`crc32 "$file"`\"
|
|
done
|
|
|
|
echo
|
|
|
|
echo }
|
|
|