Commit Graph

36 Commits

Author SHA1 Message Date
tlimoncelli@stackexchange.com
225d38ee11 BACKWARDS INCOMPATIBLE CHANGES:
* Using $BASEDIR to pass the location of the repo hasn't worked for a
  while. It has been removed.  Simply cd into the vcs repo before
  running a command.
BUG FIXES:
* .gitignore was being created in subdirectories instead of VCS root.
MINOR CHANGES
* _blackbox_common.sh: Replace change_to_root with change_to_vcs_root
* confidence_test.sh: Added more assertions and tests.
2015-03-10 21:16:27 +00:00
LE Manh Cuong
90dc874d56 Register new file now work with space in filename. 2015-03-06 11:33:39 +07:00
Tom Limoncelli
d7a3c791e9 Merge pull request #49 from law/master
adding rudimentary debian package building support
2015-03-04 16:18:34 -05:00
LE Manh Cuong
19532b82d5 Issue 50:
- Fix forgetting unquotes command substitution in function vcs_relative_path.
 - Using old test instead of new test in Makefile.
 - Fix some variables for Bob in "confidence_test.sh".
2015-03-03 09:31:09 +07:00
Lee Whalen
6e32500adc Mangling Makefile to make better sense - generates .deb inputfile list from the RPM list, and does so for each run of 'make packages-deb' 2015-03-01 14:58:09 -08:00
Lee Whalen
b183931cf5 adding rudimentary debian package building support 2015-02-28 20:44:28 -08:00
tlimoncelli@stackexchange.com
9c9691c5d6 BUG: "make confidence" should work on Mac OS X 2015-02-28 08:18:26 -06:00
tlimoncelli@stackexchange.com
a9562e73d6 "make confidence" should work on mac (partial implementation) 2015-02-28 07:58:30 -06:00
tlimoncelli@stackexchange.com
b8881d7bff Refine the upgrade procedure 2015-02-22 13:31:27 -05:00
tlimoncelli@stackexchange.com
19facd35da Better MacPorts release flow. 2015-02-22 11:25:42 -05:00
tlimoncelli@stackexchange.com
ee3b6612ff - Add blackbox_list_files to RPM and MacPorts packages.
- Makefile should not require DESTDIR variable.
2015-02-16 16:17:30 +00:00
tlimoncelli@stackexchange.com
de3ec22655 mk_rpm_fpmdir: Many improvements: configurable epoch, description, vendor 2015-02-04 20:19:09 +00:00
tlimoncelli@stackexchange.com
511d59e7bb Clean up MacPorts configuration 2015-02-03 12:34:15 -05:00
tlimoncelli@stackexchange.com
a772aea1d7 First attempt at a MacPorts config 2015-02-03 12:18:01 -05:00
tlimoncelli@stackexchange.com
9c6525161c Makefile: fix manifest name 2015-01-29 16:43:26 -05:00
tlimoncelli@stackexchange.com
ce5174691d Rework package build to use mk_rpm_fpmdir new filenames 2015-01-28 22:13:34 +00:00
Warren Gray
beefbfb912 - Fix blackbox commands so that they work when called with absolute paths.
- Fix confidence_test.sh so that it's not hardcoded to a specific dev environment path.
2015-01-13 14:42:58 -05:00
Jeffrey Miller
d4d5d3dd4a Update rpm_filelist.txt
removed blackbox_start and added in blackbox_cat to allow building of rpm
2015-01-06 14:46:18 -06:00
tal@whatexit.org
9173e4d78c merge 2015-01-05 18:18:24 -05:00
Tom Limoncelli
f3128c36ab Make confidence tests compatible with Cygwin. 2014-11-02 08:44:35 -05:00
tlimoncelli@stackexchange.com
6ed02298f0 BUG: RPM has no description 2014-10-14 15:13:02 +00:00
tlimoncelli@stackexchange.com
d1a9dbcd2e Better handle filenames with * and ? in them. 2014-10-14 14:43:03 +00:00
tlimoncelli@stackexchange.com
225909cdf3 For git, add plaintext files to .gitignore to prevent accidental additions. 2014-10-14 14:23:34 +00:00
tlimoncelli@stackexchange.com
b7217e197d Eliminate "mungepath". Improve performance and assure script will not touch disk. 2014-09-12 16:36:04 +00:00
tlimoncelli@stackexchange.com
5f15527d56 Rewrite profile.d-usrblackbox.sh to only use BASH built-ins; retain file size <132 so that it is an "inline" file. 2014-09-12 16:32:27 +00:00
tlimoncelli@stackexchange.com
8db38905de Reduce size of profile.d-usrblackbox.sh to below 132 bytes.
Add test framework to make sure we don't break bash or sh.
2014-09-12 16:17:35 +00:00
Christophe Biocca
0a465125cb Allows profile file to work on pathmunge-less systems.
Will check for pathmunge's existence and use it, or fallback to
prepending to the path.
2014-09-12 10:57:53 -04:00
tlimoncelli@stackexchange.com
389e8a7a19 BIG CHANGES:
* Command no longer need to be run from the base directory of the repo.
  * blackbox_edit now asks "are you sure?" and is greatly simplified.

_blackbox_common.sh:
  * add_filename_to_cryptlist now accepts paths relative to cwd.
  * fail_if_not_on_cryptlist now accepts paths relative to cwd.
  * new function: vcs_relative_path reports a path to the file relative to the REPOBASE.
  * new function: is_on_cryptlist

plus...
  * Some minor performance enhancesments and cleanups.
  * confidence_test.sh now tests some commands while not in REPOBASE.
2014-09-09 20:32:48 +00:00
tlimoncelli@stackexchange.com
2dcb922f95 Remove duplicate file: blackbox_start 2014-09-09 20:20:45 +00:00
tlimoncelli@stackexchange.com
f222516526 * blackbox_postdeploy should accept an optional parameter for chgrp.
* blackbox_postdeploy should 'cd' to $BASEDIR or the base VCS directory.
* Add unit tests to confidence_test.sh to cover chgrp functionality.
2014-09-02 22:10:37 +00:00
tlimoncelli@stackexchange.com
4702a9a207 * Test use-case where secrets had previously been exposed.
* BUG: blackbox_postdeploy should not "chgrp" files.
2014-09-01 18:59:57 +00:00
tlimoncelli@stackexchange.com
d74eeb33c7 * Initialization for new repos AUTOMATED.
* Adding new users AUTOMATED.
* Update docs for the new, more simplified installation processes.
* Remove dependency on any particular paths, etc.  Copy "bin" into a place along your path and everything should "just work".
* Add support for Mercurial (not tested).
* blackbox_addadmin now adds keys to the keyring for you.
* Unified #! lines to "#!/usr/bin/env bash" so it works better on FreeBSD.
* BUGFIX: (BugId#1) blackbox_update_all_files.sh expects hg, fails for git.
* BUGFIX: (BugId#2) blackbox_postdeploy.sh assumes certain directory layout.
* BUGFIX: Temporary files aren't deleted.
* NEW FILE: bin/blackbox_initialize: Automates enabling BB for a repo (creates directories, files, and updates .gitignore).
* NEW FILE: bin/blackbox_removeadmin: Automates removing an admit.
* NEW FILE: tools/confidence_test.sh: A battery of tests to verify operations.
* NEW FILE: bin/Makefile: Automate package creation.
* NEW FILE: bin/_stack_lib.sh: A library of shell routines from StackExchange.
2014-08-29 20:21:02 +00:00
tlimoncelli@stackexchange.com
f387bc9f30 Remove ".sh" from file names.
Refactor so it does not rely on PWD being the repo basedir.
Fix assumptions about HG and GIT use.
2014-08-28 20:47:32 +00:00
tlimoncelli@stackexchange.com
c903bdc575 Change package name to stack_blackbox 2014-08-28 14:37:25 +00:00
Tom Limoncelli
b023e36516 Make RPM packages easier 2014-08-26 20:40:34 +00:00
tlimoncelli@stackexchange.com
adcb7e7449 Package tools 2014-08-26 16:26:25 -04:00