Mirror von
https://github.com/tkuschel/bees.git
synchronisiert 2026-10-31 12:17:48 +01:00
bees: move usage message out of source file and fix a few inaccuracies
It's a pain to read, edit, and format large blocks of text in C++ code, so rip the usage message out of bees.cc and put it in a plain text file. Use a minimal translator to convert it into a C string. While we're here, remove the multiple roots feature from the command line synopsis, as we don't really support it any more. Also clarify that "id 5" is "subvol id 5", and describe in one sentence what workaround-btrfs-send does. Signed-off-by: Zygo Blaxell <bees@furryterror.org>
Dieser Commit ist enthalten in:
1 Ursprung
bbaf55b2b0
Commit
e654e29f45
5 Dateien geändert
+46
-42
Keine Dateien entsprechen Ihrer Suche
+6
-3
@@ -23,6 +23,10 @@ bees-version.c: bees.h $(BEES_OBJS:.o=.cc) Makefile
|
||||
echo "const char *BEES_VERSION = \"$(BEES_VERSION)\";" > bees-version.new.c
|
||||
mv -f bees-version.new.c bees-version.c
|
||||
|
||||
bees-usage.c: bees-usage.txt Makefile
|
||||
(echo 'const char *BEES_USAGE = '; sed -r 's/^(.*)$$/"\1\\n"/' < bees-usage.txt; echo ';') > bees-usage.new.c
|
||||
mv -f bees-usage.new.c bees-usage.c
|
||||
|
||||
.depends:
|
||||
mkdir -p $@
|
||||
|
||||
@@ -41,10 +45,9 @@ $(BEES_OBJS) fiemap.o fiewalk.o: %.o: %.cc
|
||||
$(PROGRAMS): ../bin/%: %.o
|
||||
$(CXX) $(BEES_CXXFLAGS) $(BEES_LDFLAGS) -o $@ $< $(LIBS)
|
||||
|
||||
bees-version.o: %.o: %.c
|
||||
$(CC) $(BEES_CFLAGS) -o $@ -c $<
|
||||
$(PROGRAMS): ../lib/libcrucible.a
|
||||
|
||||
$(BEES): $(BEES_OBJS) bees-version.o
|
||||
$(BEES): $(BEES_OBJS) bees-version.o bees-usage.o
|
||||
$(CXX) $(BEES_CXXFLAGS) $(BEES_LDFLAGS) -o $@ $^ $(LIBS)
|
||||
|
||||
clean:
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren