Commit Graph

32 Commits

Author SHA1 Message Date
Brad Fitzpatrick 1decd09846 Merge branch 'master' of https://camlistore.googlesource.com/camlistore 2013-09-11 07:46:58 +01:00
Brad Fitzpatrick 6fca50a9c7 devcam: add -nobuild flag to put.
But really this should be a global option, and/or environment controlled,
like dev/demo.sh set up previously.

Change-Id: Iabf0c02e4a44ed574088e2938f3b4f53cabf3a43
2013-09-10 20:02:15 -07:00
mpl 50c07cf7be devcam: do not depend on GOPATH, rebuild camget and camput
http://camlistore.org/issue/218

Change-Id: I4f48fac38cad095cd6d4c4d5aea4efeb35fff306
2013-09-10 21:15:12 +02:00
Brad Fitzpatrick ff4e491b3b devcam: fix breakage caused from envvar strconv changes.
Change-Id: Id05d00d9b82924242905ccbc7a7e8002dc4859a7
2013-09-08 12:32:13 -07:00
Bill Thiede 630f6ca61f Document environment variables usage.
Running 'go run dev/envvardoc/envvardoc.go' now shows:
'All environment variables are documented'

I also took the liberty of cleaning-up our mishmash of logic for handling
boolean environment variables, and cleaned up a couple other spots that didn't
seem right.

This change adds docmentation for all variables starting with (CAM|DEV|AWS).
This leaves some variables still undocumented.  If there are variables worth
documenting in the following list, maybe we should rename them to have a
CAM{LI} prefix for consistency's sake:

APPDATA                  pkg/osutil/paths.go:86
APPDATA                  pkg/osutil/paths.go:102
DISPLAY                  pkg/misc/gpgagent/gpgagent.go:126
GOPATH                   pkg/fileembed/genfileembed/genfileembed.go:321
GOPATH                   pkg/osutil/paths.go:168
GOPATH                   pkg/test/world.go:54
GOPATH                   server/appengine/build_test.go:77
GPGKEY                   cmd/camput/init.go:77
GPG_AGENT_INFO           cmd/camput/init.go:153
GPG_AGENT_INFO           pkg/misc/gpgagent/gpgagent.go:50
HOME                     pkg/jsonsign/keys.go:79
HOME                     pkg/jsonsign/signhandler/sig.go:64
HOME                     pkg/osutil/paths.go:36
HOMEPATH                 pkg/osutil/paths.go:34
PKG_CONFIG_PATH          pkg/index/sqlite/dbschema.go:59
RUN_BROKEN_TESTS         pkg/fs/fs_test.go:67
SKIP_DEP_TESTS           pkg/test/testdep.go:29
TERM                     pkg/misc/gpgagent/gpgagent.go:133
TERM                     pkg/misc/pinentry/pinentry.go:99
TESTING_PORT_WRITE_FD    pkg/webserver/webserver.go:135
TEST_GPGAGENT_LIB        pkg/misc/gpgagent/gpgagent_test.go:27
USER                     pkg/netutil/ident.go:135
USER                     pkg/osutil/paths.go:45
USERNAME                 pkg/jsonconfig/eval.go:228
USERNAME                 pkg/osutil/paths.go:43
VERBOSE_FUSE             pkg/fs/fs_test.go:133
VERBOSE_FUSE_STDERR      pkg/fs/fs_test.go:137
XDG_CONFIG_HOME          pkg/osutil/paths.go:104

Change-Id: Ief28710d3deefd1e65247cb5d3b1d8dde73e1f2d
2013-09-06 21:54:03 -07:00
Brad Fitzpatrick 4aeb310a4c devcam: fix build
Change-Id: If5f8d6e0e4e315cd8ca01aa7bf9b0f59407c52fe
2013-09-02 08:56:08 -07:00
Brad Fitzpatrick 9ae1a64c38 devcam: exec child binaries when possible
Change-Id: I56d56d9f7416e3d5958e736762063a48dcd8e9f9
2013-09-01 11:37:09 -07:00
mpl 3a26c433db devcam: 'put' and 'get' commands, replace dev-camput and dev-camget
Also added -port flag, and untied the port to the
password in devcam server, always 'pass3179' now.

http://camlistore.org/issue/212

Change-Id: Iadf693951763d47907be17c53d4807a4706eb150
2013-09-01 10:25:09 -07:00
Brad Fitzpatrick e20c7f44a8 auth: fix security problem where 'localhost' allowed all access.
Also, add tests. And remove CAMLI_ADVERTISED_PASSWORD, replacing it with explicit devauth mode.

Change-Id: I9cdfe2d537ecefcf75df0b9fb8538258703b1eb7
2013-08-31 13:44:44 -07:00
Brad Fitzpatrick 2f2c3fdfef Merge "envvardoc: new tool to find undocumented env vars." 2013-08-30 19:26:48 +00:00
Brad Fitzpatrick f0d4a61b6a Use osutil.Username in more places.
Change-Id: Id1154fc16c98b3c72d425a4a8adae9c6c0bb2c04
2013-08-28 12:00:17 -07:00
Brad Fitzpatrick 7963001a9c dev/make-release: change in-correct-directory heuristic
Change-Id: If0ee4fb0aea262e1f283e16e85a489d4f806f51b
2013-08-26 18:05:12 -05:00
Brad Fitzpatrick ac05ce80ae Merge "devcam: bugfix; do not fail when binary does not exist" 2013-08-26 23:01:22 +00:00
Johan Euphrosine 4928a880be dev/devcam/appengine: map -all flag to devappserver2 --host
Change-Id: I1cb352041405f5244159f23b37ce2c215a422943
2013-08-26 15:36:34 -07:00
mpl 6bc558910d devcam: bugfix; do not fail when binary does not exist
http://camlistore.org/issue/213

Change-Id: I432a8ec04cb02c4c5241bd38361fad3d6d39ee02
2013-08-26 15:14:52 +02:00
Bill Thiede ac4ed5492b envvardoc: new tool to find undocumented env vars.
This tool will walk over interesting directories (-srcDirs flag) in the
source tree and look for references to environement variables. It then
cross-references these with environment variables found in a documentaion file
(-doc flag).  Any values found in source but not documented are printed to the
screen, and the exit code is set to non-zero.  Not all environment variables
are considered, only those matching one of the prefixes (-prefixes flag).

The change also begins the process of documenting environment variables.

Change-Id: Ie122b64b7befcb3104b960cf3d2d22bae443f67f
2013-08-25 21:28:23 -07:00
Brad Fitzpatrick 2ddb716b83 Merge "devcam: add -openbrowser flag. Don't open the start page on browser by default." 2013-08-25 17:31:46 +00:00
Burcu Dogan 2de9f8aafd devcam: add -openbrowser flag. Don't open the start page on browser by default.
Change-Id: I1dc3804bf192dc5119c7d05758ccbacd0e7740f1
2013-08-25 18:28:54 +02:00
Brad Fitzpatrick 500ba50b97 devcam: make kvfile the default dev-server indexer.
Memory index requires -memindex now.

Change-Id: I6df424e88c3783e397c528cd8633402a9edf3d95
2013-08-23 17:19:21 -05:00
Brad Fitzpatrick c5761f5ed8 Add dev/push script.
Change-Id: I84f12d8df8d65a3d7a5d3287266849f250283502
2013-08-23 00:13:09 -05:00
Bill Thiede ef4719a78c devcam: handle failed camlistored execution.
Issue https://camlistore.org/issue/208

Change-Id: Ie5bf46d13023bc82f7e2934947393708c9308915
2013-08-21 20:22:33 -07:00
mpl a41c89a24e devcam appengine: replaces ./dev-appengine
Change-Id: Ic4adcb8898fc3ead801aefd679682bcc646f3573
2013-08-20 00:10:01 +02:00
mpl 477bf96f33 devcam server: handle SIGQUIT
Somehow forgot last patch when doing
http://camlistore.org/r/452

Change-Id: I10841ebff29689af19773e8f9d99c5c16659cfc1
2013-08-17 00:43:53 +02:00
Brad Fitzpatrick 7bbc2828fd demo.sh script to source during demos
Change-Id: If7415d16f21fdc4ae16778b3bf2ce5c908067193
2013-08-03 13:04:33 -07:00
mpl f4ef8c0375 dev-server: remove. replaced by devcam server.
Fix related docs, config files, buildbot...

Change-Id: I638d3856f42953603b13204fb56782974d0db9ee
2013-08-03 01:12:38 +02:00
Brad Fitzpatrick 737f033cd6 make-release: remove misc/sqlite from delete list. it's gone.
Change-Id: I4fef7dc948d143e0faff63ee176c84ed61cb51d8
2013-07-28 18:46:26 -07:00
mpl 23777f0b05 dev-server: go replacement: devcam server
http://camlistore.org/issue/140

Change-Id: I6fd14b1185450ff853523db0d207df3bf954ffbf
2013-07-26 21:34:42 +02:00
mpl 5645570ca9 dev-server: use updatelibrary.go to update closure lib
This change also removes misc/get_closure.pl and updates
the Makefile accordingly.

http://camlistore.org/issue/140

Change-Id: I508271cee24eb20d8391cb3d84e1201ce3ef567e
2013-07-23 16:19:46 +02:00
mpl f1c0c37cd7 dev/update_closure_compiler: new command
Go program that replaces get_closure_compiler from
misc/get_closure.pl

Change-Id: Ic7471c970afbfc65bc14d9ec2401aeb0d1ecd9a1
2013-06-20 00:15:08 +02:00
Brad Fitzpatrick 6a4395e413 make-release: keep a log of tags made, since I don't trust myself with git
Change-Id: I251d59820ccc34433d9e19d428ec0a52773e554d
2013-06-11 15:05:42 +02:00
Brad Fitzpatrick 6643ccb34a Add a BUILDING file, update HACKING, clean some stuff
Change-Id: I39c310556cfa7643c3d1aa271acab8ce130e0953
2013-06-11 13:14:05 +02:00
Brad Fitzpatrick 748806418c Add a make-release script.
Change-Id: I1090efd713dfb8f6ca114b6d3f3e652eeccc8493
2013-06-11 12:36:41 +02:00