From b745dfa71d1d60ce9a914f60a66023fef12c3ba1 Mon Sep 17 00:00:00 2001 From: Michael Vrable Date: Tue, 3 Jun 2008 14:44:32 -0700 Subject: [PATCH] Change name of project to Cumulus. Start changing some references to the LBS name to Cumulus instead. So far, changes are in a few of the more user-visible places (name of the executable, name in the version string). Many internal references are not changed, and likely will not be changed immediately (since some of the changes would change format compatibility). --- Makefile | 4 ++-- scandir.cc | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index de3e9f9..911efcc 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,14 @@ PACKAGES=sqlite3 uuid DEBUG=-g #-pg CXXFLAGS=-O -Wall -D_FILE_OFFSET_BITS=64 $(DEBUG) \ - `pkg-config --cflags $(PACKAGES)` -DLBS_VERSION=`cat version` + `pkg-config --cflags $(PACKAGES)` -DCUMULUS_VERSION=`cat version` LDFLAGS=$(DEBUG) `pkg-config --libs $(PACKAGES)` SRCS=chunk.cc localdb.cc metadata.cc ref.cc remote.cc scandir.cc sha1.cc \ store.cc subfile.cc util.cc OBJS=$(SRCS:.cc=.o) -lbs : $(OBJS) +cumulus : $(OBJS) $(CXX) $(LDFLAGS) -o $@ $^ version : NEWS diff --git a/scandir.cc b/scandir.cc index d462432..24e3927 100644 --- a/scandir.cc +++ b/scandir.cc @@ -59,12 +59,12 @@ using std::vector; using std::ostream; /* Version information. This will be filled in by the Makefile. */ -#ifndef LBS_VERSION -#define LBS_VERSION Unknown +#ifndef CUMULUS_VERSION +#define CUMULUS_VERSION Unknown #endif -#define LBS_STRINGIFY(s) LBS_STRINGIFY2(s) -#define LBS_STRINGIFY2(s) #s -static const char lbs_version[] = LBS_STRINGIFY(LBS_VERSION); +#define CUMULUS_STRINGIFY(s) CUMULUS_STRINGIFY2(s) +#define CUMULUS_STRINGIFY2(s) #s +static const char cumulus_version[] = CUMULUS_STRINGIFY(CUMULUS_VERSION); static RemoteStore *remote = NULL; static TarSegmentStore *tss = NULL; @@ -580,7 +580,7 @@ void usage(const char *program) { fprintf( stderr, - "LBS %s\n\n" + "Cumulus %s\n\n" "Usage: %s [OPTION]... --dest=DEST PATHS...\n" "Produce backup snapshot of files in SOURCE and store to DEST.\n" "\n" @@ -605,7 +605,7 @@ void usage(const char *program) " --full-metadata do not re-use metadata from previous backups\n" "\n" "Exactly one of --dest or --upload-script must be specified.\n", - lbs_version, program + cumulus_version, program ); } @@ -847,7 +847,7 @@ int main(int argc, char *argv[]) FILE *descriptor = fdopen(descriptor_fd, "w"); fprintf(descriptor, "Format: LBS Snapshot v0.6\n"); - fprintf(descriptor, "Producer: LBS %s\n", lbs_version); + fprintf(descriptor, "Producer: Cumulus %s\n", cumulus_version); strftime(desc_buf, sizeof(desc_buf), "%Y-%m-%d %H:%M:%S %z", &time_buf); fprintf(descriptor, "Date: %s\n", desc_buf); if (backup_scheme.size() > 0) -- 2.20.1