Re: [sqlite] How to retrieve "latest" fileio.c, test_windirect.c/h files?
On 2019-05-12 21:39, Warren Young wrote: On May 11, 2019, at 10:46 PM, Justin Clift wrote: One of the steps uses curl to download fileio.c, test_windirent.c/.h from fossil [snip] Is there a way to always get "the latest" version of the file? :) $ curl -L -o src/extensions/fileio.c 'https://sqlite.org/src/raw?filename=ext/misc/fileio.c&ci=trunk' Thanks Warren, that works. :) Or, you could just use Fossil directly. ... It's a good thought, but not just yet. Already have a head full of other stuff being learned, don't really want to add a whole new distributed version control system as well. Maybe later. :) Regards and best wishes, Justin Clift ___ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
Re: [sqlite] How to retrieve "latest" fileio.c, test_windirect.c/h files?
On May 11, 2019, at 10:46 PM, Justin Clift wrote: > > One of the steps uses curl to download fileio.c, test_windirent.c/.h > from fossil [snip] > Is there a way to always get "the latest" version of the file? :) $ curl -L -o src/extensions/fileio.c 'https://sqlite.org/src/raw?filename=ext/misc/fileio.c&ci=trunk' Mind the quotes: you need them to prevent the shell from trying to interpret the &. Or, you could just use Fossil directly. First time: $ fossil clone https://sqlite.org/src sqlite.fossil $ mkdir sqlite-trunk $ cd sqlite-trunk $ fossil open ../sqlite.fossil $ cp ext/misc/fileio.c ../src/extensions Subsequent times: $ cd sqlite-trunk $ fossil update $ cp ext/misc/fileio.c ../src/extensions Which brings me to how I constructed the URL in the curl command above: $ fossil help /raw ___ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
[sqlite] How to retrieve "latest" fileio.c, test_windirect.c/h files?
Hi all, Is there a way to grab the "latest" version of a SQLite source file? In this instance, we have an automatic nightly process (shell script) that builds the DB Browser for SQLite nightly builds. One of the steps uses curl to download fileio.c, test_windirent.c/.h from fossil, so the fileio extension can be included in the nightly builds. It's using a specific commit for each of the downloads at the moment, as that's the only thing I was able to figure out at the time of creating the script: curl -L -o src/extensions/fileio.c https://sqlite.org/src/raw/ext/misc/fileio.c?name=288e7230e0fe464d71b0694e2d8bdd3a353118ac2e31da3964b95f460f09915f curl -L -o src/extensions/test_windirent.c https://sqlite.org/src/raw/src/test_windirent.c?name=a895e2c068a06644eef91a7f0a32182445a893b9a0f33d0cdb4283dca2486ac1 curl -L -o src/extensions/test_windirent.h https://sqlite.org/src/raw/src/test_windirent.h?name=90dfbe95442c9762357fe128dc7ae3dc199d006de93eb33ba3972e0a90484215 Leaving off the `name=...` argument just returns a HTML page, instead of giving the expect latest version too. Is there a way to always get "the latest" version of the file? :) Regards and best wishes, Justin Clift ___ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users