devenv-scripts:mainline.git
9 years agoAdd a 'droot' alias master
Matt Rogers [Sun, 16 Aug 2009 19:22:42 +0000 (14:22 -0500)]
Add a 'droot' alias

Does a 'cd' to $DEVENV_PROJECT_ROOT if it is defined. You must call
devenv_use_standard_paths in order for this to work.

9 years agoAdd the ability for environments to require other environments devenv-1.0
Matt Rogers [Sat, 11 Jul 2009 17:45:36 +0000 (12:45 -0500)]
Add the ability for environments to require other environments

This is basically environment dependencies, so that one environment can
depend on another environment. development environments should add
'devenv_require' and the environment to pull in.

9 years agoMake sure we handle the no parameter case correctly
Matt Rogers [Wed, 8 Jul 2009 01:36:08 +0000 (20:36 -0500)]
Make sure we handle the no parameter case correctly

If no argument is specified to devenv_use_standard_paths,
$DEVENV_INSTALLS_DIR/bin would not be added to the PATH. This fixes
that.

9 years agoAdd PATH exclusion support to devenv_use_standard_paths
Matt Rogers [Tue, 7 Jul 2009 14:42:38 +0000 (09:42 -0500)]
Add PATH exclusion support to devenv_use_standard_paths

If you pass a 'no-install-path' to devenv_use_standard_paths then it
won't add DEVENV_INSTALLS_DIR/bin to path for you, which lets you
control what the path actually ends up being.

9 years agoAdd a hook to set OBJ_REPLACEMENT
matt [Sat, 4 Jul 2009 03:43:37 +0000 (22:43 -0500)]
Add a hook to set OBJ_REPLACEMENT

This makes working with the makeobj script in kdesdk/scripts easy.

9 years agoAllow specifying a directory off the main build dir to switch to
matt [Sat, 4 Jul 2009 03:30:56 +0000 (22:30 -0500)]
Allow specifying a directory off the main build dir to switch to

9 years agoAllow passing a directory off the main source to change to
Matt Rogers [Sat, 13 Jun 2009 07:36:17 +0000 (02:36 -0500)]
Allow passing a directory off the main source to change to

It's sort of a hack, since there's no error checking, but it works for
me. :)

9 years agoPretty up the environment listing
Matt Rogers [Sat, 13 Jun 2009 07:31:45 +0000 (02:31 -0500)]
Pretty up the environment listing

Add an "Available environments" header and indent each environment by 2
spaces

9 years agoAdd an environment variable for the install directory
Matt Rogers [Sat, 6 Jun 2009 19:18:50 +0000 (14:18 -0500)]
Add an environment variable for the install directory

The environment variable is called DEVENV_INSTALLS_DIR and when using
devenv_use_standard_paths, PATH will have $DEVENV_INSTALLS_DIR/bin added
to the front of path

9 years agoAdd a function to add icecream to the devenv path
Matt Rogers [Sat, 6 Jun 2009 19:16:16 +0000 (14:16 -0500)]
Add a function to add icecream to the devenv path

This is will eventually look for the right path to use rather than
defaulting to /opt/icecream all the time, but well, i'm lazy. :)

9 years agoAdd a script to move to the patch directory for a project
Matt Rogers [Thu, 9 Apr 2009 03:28:45 +0000 (22:28 -0500)]
Add a script to move to the patch directory for a project

9 years agoallow dbd and dsd to make use of current options
Matt Rogers [Mon, 16 Mar 2009 03:29:40 +0000 (22:29 -0500)]
allow dbd and dsd to make use of current options

9 years agofix syntax error
Matt Rogers [Mon, 16 Mar 2009 03:20:19 +0000 (22:20 -0500)]
fix syntax error

9 years agorename support scripts/functions: de -> d
Matt Rogers [Mon, 16 Mar 2009 03:16:44 +0000 (22:16 -0500)]
rename support scripts/functions: de -> d

treat devenv as one word instead of two to make it shorter and to
prevent conflicts with possible debian things, since debd may do
something important on debian based systems.

9 years agoAdd autoload functions for switch to build dir and source dir
Matt Rogers [Mon, 16 Mar 2009 03:02:01 +0000 (22:02 -0500)]
Add autoload functions for switch to build dir and source dir

These depend on devenv, but the dependency isn't there yet.

9 years agowhitespace cleanup
Matt Rogers [Mon, 16 Mar 2009 03:01:53 +0000 (22:01 -0500)]
whitespace cleanup

9 years agomake devenv with no parameters print the current dev. environment
Matt Rogers [Fri, 13 Mar 2009 02:24:26 +0000 (21:24 -0500)]
make devenv with no parameters print the current dev. environment

If no dev. environment is set, then 'none' is printed.

9 years agomake sure to reset before switching to a new devenv, if needed.
Matt Rogers [Fri, 13 Mar 2009 02:20:29 +0000 (21:20 -0500)]
make sure to reset before switching to a new devenv, if needed.

This moves the check for the reset file into the function that we
reset the environment if this is not the first time we've set an
environment up. This makes the following work cleanly:

devenv foobar
...hack...hack...hack
devenv wizbang

before this patch, wizbang would inherit foobar's environment. not
a good idea. now the environments aren't shared.

9 years agofix whitespace
Matt Rogers [Fri, 13 Mar 2009 02:19:06 +0000 (21:19 -0500)]
fix whitespace

9 years agomove the reset functionality to its own function
Matt Rogers [Thu, 12 Mar 2009 21:52:19 +0000 (16:52 -0500)]
move the reset functionality to its own function

9 years agoadd a special 'reset' environment
Matt Rogers [Thu, 12 Mar 2009 21:00:16 +0000 (16:00 -0500)]
add a special 'reset' environment

The reset environment is pretty self-explanatory. Before changing
the environment, devenv saves the state of the current environment
and then puts the new environment in place. If 'reset' is given as
an environment, then devenv restores the previously saved state.
This is done per each shell pid, so that we don't reset anything
that wasn't changed within the current process

9 years agoProvide an error message should a development environment not exist
Matt Rogers [Wed, 11 Mar 2009 21:53:10 +0000 (16:53 -0500)]
Provide an error message should a development environment not exist

9 years agowhitespace cleanup
Matt Rogers [Wed, 11 Mar 2009 19:08:16 +0000 (14:08 -0500)]
whitespace cleanup

9 years agoadd a standard scripts dir to devenv
Matt Rogers [Sat, 28 Feb 2009 20:49:12 +0000 (14:49 -0600)]
add a standard scripts dir to devenv

If you have a scripts directory, then devenv will add it to the path. (still
TODO)

9 years agoAdd a standard definition for a directory containing patches
Matt Rogers [Thu, 26 Feb 2009 04:33:30 +0000 (22:33 -0600)]
Add a standard definition for a directory containing patches

9 years agoAdd devenv_use_standard_paths
Matt Rogers [Thu, 12 Feb 2009 05:09:15 +0000 (23:09 -0600)]
Add devenv_use_standard_paths

This causes devenv to use a set of standard paths to set up the
development environment with. Eventually there will other options but
for now, we have a project root, a build dir, and a source dir.

9 years agoreturn instead of exit. we're a function now. :)
Matt Rogers [Fri, 6 Feb 2009 04:10:54 +0000 (22:10 -0600)]
return instead of exit. we're a function now. :)

9 years agodeclare opts to be local
Matt Rogers [Fri, 6 Feb 2009 04:10:16 +0000 (22:10 -0600)]
declare opts to be local

9 years agoDon't autoload zsh/zutil anymore.
Matt Rogers [Fri, 6 Feb 2009 04:09:25 +0000 (22:09 -0600)]
Don't autoload zsh/zutil anymore.

It's not needed from within my running shell.

9 years agoturn devenv into a function instead of a script
Matt Rogers [Fri, 6 Feb 2009 03:57:32 +0000 (21:57 -0600)]
turn devenv into a function instead of a script

9 years agoAdd the sourcing of the development environment.
Matt Rogers [Fri, 6 Feb 2009 03:56:11 +0000 (21:56 -0600)]
Add the sourcing of the development environment.

Now I do need to make this into an autoloading function. :)

9 years agoexit after list and display a message if argument count is not right.
Matt Rogers [Fri, 6 Feb 2009 03:48:28 +0000 (21:48 -0600)]
exit after list and display a message if argument count is not right.

9 years agoStart working on a devenv script to change development environments
Matt Rogers [Wed, 4 Feb 2009 05:25:16 +0000 (23:25 -0600)]
Start working on a devenv script to change development environments

Right now, it's standalone for testing purposes but the ultimate goal
is to have this be an autoload function or perhaps even a zsh module.

Since I'm having to rewrite this from scratch after losing a previous
version, I'm not sure the direction I want to take yet.