We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28b595e commit 29b916eCopy full SHA for 29b916e
.gitignore
@@ -15,7 +15,6 @@ obj/
15
*.ap_
16
17
# Generated files
18
-bin/
19
gen/
20
out/
21
build/
bin/migrate-offsets-to-0.6.0.sh
@@ -0,0 +1,18 @@
1
+#!/bin/sh
2
+
3
+set -e
4
+if [ ! -f offsets.csv ]; then
5
+ echo "Can only migrate offsets if the current directory contains offsets.csv"
6
+ exit 1
7
+fi
8
9
+mkdir -p offsets
10
+TOPICS=$(tail -n+2 offsets.csv | cut -d , -f 4 | sort -u)
11
+for topic in $TOPICS; do
12
+ target="offsets/$topic.csv"
13
+ echo "Updating $target"
14
+ if [ ! -f "$target" ]; then
+ head -n 1 offsets.csv > "$target"
+ fi
+ grep ",$topic\$" offsets.csv >> "$target"
+done
0 commit comments