Commit Graph
67 Commits
Author SHA1 Message Date
Karlson2k 9f39c75117 filesystem: bump version and update checksums 2016-07-16 22:18:25 +03:00
Karlson2k 648db9106c msys2_shell.cmd: fixed processing specified working directory 2016-07-16 22:15:10 +03:00
Karlson2k 9f7a93a620 msys2_shell.cmd: print help if asked by '--help', '-?' or '/?' parameters
This simplify usage for people who are used to the MS or GNU standards.
2016-07-16 19:20:44 +03:00
Karlson2k 705a468108 msys2_shell.cmd: Fixed return value - printing help is not an error. 2016-07-16 19:11:50 +03:00
Karlson2k 222dd3a2ef msys2_shell.cmd: Improved help display 2016-07-16 19:08:44 +03:00
Karlson2k f777b848dc msys2_shell.cmd: Fixed running with ConsoleZ.
'start' command like to use first quoted parameter as title.
2016-07-16 19:08:34 +03:00
Karlson2k ae96deba82 msys2_shell.cmd: Fixed running with conemu if path (for any strange reason) has spaces 2016-07-16 19:08:27 +03:00
Karlson2k 1942ce3fcd msys2_shell.cmd: Stop deprecating parameters, give users freedom to use whatever they found convenient 2016-07-16 19:08:17 +03:00
Karlson2k 73e06b9d4c bash.bashrc: Update PS1 if PS1 wasn't exported.
Closes #653
2016-07-14 23:59:51 +03:00
Philip Oakley 17a6004301 bashrc: re-include $PS1 priority
6e6310d (filesystem: New specific variable MSYS2_PS1., 2016-05-01)
introduced the MSYS2_PS1 prompt script priority to allow multiple
device configurations.

Unfortunately, if MSYS2_PS1 was not set it overwrote the $PS1, even
when specifically set by the users configuration, such as provided in the
Git-for-Windows SDK (see https://github.com/git-for-windows/git/issues/794#issuecomment-227401839)
and the monkey patch fix (https://github.com/git-for-windows/build-extra/pull/122).

Introduce a priority order so that the user's $PS1 (if set) has an
intermediate priority between the MSYS2_PS1 and the default PS1.

Signed-off-by: Philip Oakley <philipoakley@iee.org>
2016-07-06 23:33:58 +01:00
Алексей bc18852c8e Merge pull request #635 from Karlson2k/config_site_01
Added support for 'config.site' files
2016-06-30 08:55:04 +04:00
Renato Silva 4c63570212 filesystem: Some improvements.
* Avoid continuously appending items to MANPATH and INFOPATH when
  sourcing /etc/profile multiple times.

* Check for .bashrc existence in shell manager.
2016-06-26 15:46:53 -03:00
Karlson2k 84555bb798 Added support for 'config.site' files
Now users don't need to override installation prefix for MinGW programs and
'configure' scripts use more compatible triplet 'x86_64-w64-mingw32`
automatically instead of 'x86_64-pc-mingw64`.
2016-06-21 03:03:24 +03:00
Renato Silva f3d69450f2 filesystem: Restore removed parameters as deprecated in shell starter. 2016-05-30 13:08:15 -03:00
Renato Silva 7aa258ac7b filesystem: Some improvements.
* Improve shell manager to run existing executable files provided as
  first argument, instead of opening them with Windows Explorer.

* Add simplified parameter -here to shell starter, making the directory
  argument optional and deprecating the -where parameter.

* Add -help parameter to shell starter.
2016-05-24 14:37:08 -03:00
Renato Silva f64a34a763 filesystem: More consistent behavior for MSYSTEM.
MSYSTEM now defaults to MSYS when not specified, and there is no
different behavior anymore between empty value and MSYS, for example
/opt/bin was not being added to path when not setting MSYSTEM. This
removes the need for explicitly setting the variable, since a default
value is now implied.
2016-05-24 14:37:08 -03:00
Renato Silva d81601b726 More environment improvements.
* Warning about required shortcut changes.
  When upgrading the filesystem package, user will be notified about the
  unified msys2_shell.cmd and asked for updating their shortcuts.

* New warning mechanism for interactive bash sessions.
  Applications can now add warnings to the terminal for notifying the
  user about possible problems. This is done by adding a file containing
  the warning text to one of the following locations:

      - /etc/profile.d/NAME.warning
      - /mingw32/etc/profile.d/NAME.warning
      - /mingw64/etc/profile.d/NAME.warning

  These files are processed by /etc/bash.bashrc. Files with the
  "warning.once" extension are removed after processing. An
  implementation example is provided by next change.

* Add simplified parameter -full-path to msys2_shell.cmd. The old
  parameter -use-full-path still works for now but is marked as
  deprecated using the above warning mechanism.

* Add file opening support to shell manager.
  Both directory and file arguments are now accepted and passed to
  Windows Explorer for opening with default application.

* Residual pkgrel updates.
2016-05-24 14:37:08 -03:00
Renato Silva 6da50f5a66 filesystem: Improvements for shell manager.
* Use winpty for all commands from the Windows system32 directory.
* Run Windows Explorer instances when provided with directory arguments.
2016-05-24 14:37:08 -03:00
Renato Silva dc9fe79413 filesystem: Fixes for the shell starting script.
* Fix default value for MSYSTEM.
  This was being determined based on relative paths to /mingw64 and
  /mingw32. Since these directories are provided by filesystem, it
  would always default to MINGW64, and only under such relative path
  condition. MSYSTEM now defaults to MSYS when not specified.

* Remove the ambiguous parameters -mingw and -msys2.
  For the same reason above, and for avoiding confusion since MINGW
  shells are also "MSYS2 shells", respectively.
2016-05-24 14:37:08 -03:00
Renato Silva 6e6310dd66 filesystem: New specific variable MSYS2_PS1.
Setting this variable now makes /etc/bash.bashrc use that as PS1 instead
of default value. This allows for configuration shared between MSYS2 and
other environments like Cygwin or MinGW.org MSYS to define a PS1 that is
specific to MSYS2 without manual detection of the system type.
2016-05-24 14:37:08 -03:00
Renato Silva f102f8cf58 filesystem: Improve the shell script.
This script can now also be used for executing commands with custom
handling for better MSYS2 integration. The following commands are
currently supported and more can be added:

    * Windows Explorer, for proper backslash path conversion.
    * Windows command prompt, for properly executing under winpty.
    * Programs under /mingw32 and /mingw64, for the same reason.
2016-05-24 14:37:08 -03:00
Renato Silva 2c4e6d7289 Rename start_shell.cmd to msys2_shell.cmd.
This more specific name improves MSYS2 detection by applications that
are sensitive to the presence of this file, such as the installer script
make-msys2-installer.bat.
2016-05-24 14:37:08 -03:00
Renato Silva 8a94387746 Remove unneeded shell starting wrappers.
These batch files used to contain duplicated code that has been merged
into start_shell.cmd. Shortcuts can replace them like this:

    * Call `start_shell.cmd -mingw32` instead of mingw32_shell.bat.
    * Call `start_shell.cmd -mingw64` instead of mingw64_shell.bat.
    * Call `start_shell.cmd -msys` instead of msys2_shell.bat.
2016-05-24 14:37:08 -03:00
Renato Silva b827a678b1 Some environment improvements.
* New script /etc/msystem providing information associated with the
  current MSYSTEM. This is sourced by /etc/profile but can be used by
  non-login scripts for getting information such as the current
  compiler architecture or mount point.

* New script /usr/bin/shell for switching between shells without
  restarting MSYS2. This can be used in interactive sessions but also
  from shell scripts for switching the MSYSTEM without restarting bash
  or spawning a subshell.

* Allow /etc/profile to be sourced multiple times without continuously
  appending stuff to PATH or losing track of the original Windows TEMP.
  Also implemented for /etc/profile.d/perlbin.sh, so perl path is not
  repeatedly appended.
2016-05-24 14:37:08 -03:00
David Macek 8f4825e69e filesystem: Update version and checksums after last merge 2016-05-03 10:49:33 +02:00
ph4nt0m 2a4d208b96 filesystem: Add -where parameter to start_shell.cmd
* Introduce parameter '-where' which must be followed by an existing
  directory which will be used to start the shell in (use . for the
  current working directory)
* Use setlocal to return to the original directory after this script
  finished (any calls to cd will be local to this script)
2016-05-03 09:18:56 +02:00
Renato Silva 7fd131dde0 filesystem: More consistent Windows path setting.
The generic variable SET_FULL_PATH has been replaced with MSYS2_PATH_TYPE, which
can accept the following values:

* strict: no Windows path.
* inherit: full Windows path.
* Other values: minimal Windows path (default).
2016-04-08 16:05:50 -03:00
Karlson2k b47e084f17 .bat-files: added support for ConEmu terminal emulation 2016-04-05 17:24:47 +03:00
Karlson2k bad73771f3 .bat-files: add '-use-full-path' parameter support.
It's convenient to use this parameter in shortcut rather than modify bat-file with
changes than will be lost on next update.
2016-04-05 14:36:26 +03:00
Karlson2k 7b3055f9d7 .bat-files: move duplicated code to separate file 2016-04-05 14:28:27 +03:00
Karlson2k a7b0cf62a6 .bat files: improve working directory handling 2016-04-05 11:54:52 +03:00
Karlson2k dda225a27b Set MSYSCON to mintty only when mintty is really used 2016-04-05 11:44:51 +03:00
Karlson2k c17fba192f Update sha256sums, missing in previous commits. 2016-04-05 11:43:29 +03:00
Karlson2k caa9db4fef Fix handling quoted parameters, fix handling '-mintty' parameter
Shift command don't change value of %* so numbered parameters are required.
2016-04-04 21:02:30 +03:00
Alexpux 113d7c0de1 Merge pull request #531 from Karlson2k/bat_files_02
.bat-files: exit only from .bat file instead of terminating parent command processor
2016-04-04 20:40:42 +04:00
Karlson2k 0fa627dda8 .bat-files: exit only from .bat file instead of terminating parent command processor,
bypass result of "start" to calling process
2016-04-04 18:56:12 +03:00
Karlson2k 279c912b41 Remove Win9x support from .bat files 2016-04-04 18:33:53 +03:00
Alexey Pavlov 8db3812e08 filesystem: Fix path convert. Remove TERM variable 2016-03-30 16:08:19 +03:00
Alexey Pavlov 5abf4b608f filesystem: Add environment variable to SKIP minimize PATH 2016-03-30 08:29:49 +03:00
pavelp 41361633f1 filesystem: handle ctrl+[right/left] for word forward/backward in mintty 2016-03-29 22:55:58 -04:00
Alexey Pavlov 6e0e609da2 filesystem: Create minimal PATH environment. 2016-03-29 09:38:10 +03:00
Viktor Szakats ab64a4ef6c switch to sha256 checksums
* upgrade some broken packages
* correct some broken urls/checksums
* use secure urls where possible
* use stable url for ncurses
* some whitespace fixes

Remaining md5sums either didn't download or
didn't pass checksum tests.
2016-02-25 14:45:55 +01:00
Alexpux e259adce91 filesystem: Add agm2 macros. 2015-04-26 13:35:26 +03:00
Iku Iwasa 856cbc1aae Fix empty MINGW_MOUNT_POINT handling 2015-04-25 13:41:28 +01:00
David Macek 7983d31a84 filesystem: Fix execute permissions on files (should fix #222) 2015-04-18 16:50:39 +02:00
Alexpux 96089872e9 filesystem: Read profiles for mingw shells from mingw directories 2015-04-05 23:22:20 +03:00
Alexpux 8847985002 filesystem: Do not override nsswitch.conf modified by user. 2015-03-14 01:51:30 +03:00
David Macek 310f430905 Clean up /usr/sbin and /usr/etc
Affected recipes: cyrus-sasl, filesystem, gdb, heimdal, tar, tzcode, util-linux

Also:
- add missing dependencies to gdb
- re-format filesystem PKGBUILD slightly
2015-03-07 17:07:25 +01:00
Alexpux 51e2978b0c filesystem: Do not remove user's /etc/{passwd,group} files. 2015-02-15 23:49:44 +03:00
Renato Silva b176b369d3 Trailing whitespace cleanup. 2015-02-09 18:47:01 -02:00