This rolling release of the Stanford GraphBase is based on the original SGB tarball from the Stanford server as represented by the contents of the master
branch. It uses the extra material from the local
branch, i.e., the build recipe sgb.spec
and the set of git-generated patch files.
In order to build the modernized SGB, put the original tarball and the 00*-*.patch
files in the SOURCES
directory of your build arena, and file sgb.spec
in the SPECS
directory, and invoke one of
debbuild -ba --verbose -S git_am SPECS/sgb.spec
rpmbuild -ba --verbose --define="__scm git_am" SPECS/sgb.spec
This creates the installation packages in deb
or rpm
format, and produces a “live” SGB environment in the BUILD/sgb-*
subdirectory, where you can inspect the individual patches with git --log -p
.
Alternatively, you can clone this project, checkout out the local
branch, and apply the patches with
git am 00{02..35}-*.patch
ln -s PROTOTYPES/*.ch .
make tests demos
Alternatively, you can download the patch files and apply them directly with
for i in {01..35}; do patch -p1 -i 00$i-*.patch; done