projects
/
platform
/
kernel
/
linux-starfive.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge tag '6.5-rc-smb3-client-fixes-part1' of git://git.samba.org/sfrench/cifs-2.6
[platform/kernel/linux-starfive.git]
/
scripts
/
orc_hash.sh
1
#!/bin/sh
2
# SPDX-License-Identifier: GPL-2.0-or-later
3
# Copyright (c) Meta Platforms, Inc. and affiliates.
4
5
set -e
6
7
printf '%s' '#define ORC_HASH '
8
9
awk '
10
/^#define ORC_(REG|TYPE)_/ { print }
11
/^struct orc_entry {$/ { p=1 }
12
p { print }
13
/^}/ { p=0 }' |
14
sha1sum |
15
cut -d " " -f 1 |
16
sed 's/\([0-9a-f]\{2\}\)/0x\1,/g'