/usr/share/gps/plug-ins/protocols.xml.in is in gnat-gps-common 5.3dfsg-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 | <?xml version="1.0"?>
<!-- Defines the protocols used when communicating with remote hosts.
The GPS remote facility (/Tools/View/Remote) allows you to easily
work (eg build and compile) on remote hosts. The communication with
these remote hosts can be done through a number of protocols, which
are defined in this package.
-->
<GPS>
<!-- SSH -->
<!-- tty allocation required for some platforms like solaris -->
<remote_connection_config name="ssh">
<start_command use_pipes="false">ssh</start_command>
<start_command_common_args>-t -t -Y -e @SSH_ESCAPE@ -C %U %h %C</start_command_common_args>
<start_command_user_args>-l %u</start_command_user_args>
<send_interrupt>~.</send_interrupt>
<extra_ptrn auto_answer="true" answer="yes">^.*continue connecting \(yes/no\)\? *</extra_ptrn>
</remote_connection_config>
<!-- RSH -->
<!-- rlogin ignores the start command. We use rlogin instead of rsh to make
sure under Windows that the Microsoft rsh version is not used. The GNU
rsh provides directly the rlogin tool that we want to use anyway.
-->
<remote_connection_config name="rsh">
<start_command use_pipes="false">rlogin</start_command>
<start_command_common_args>%U %h</start_command_common_args>
<start_command_user_args>-l %u</start_command_user_args>
</remote_connection_config>
<!-- TELNET -->
<!-- rsh will ignore the shell start command, as remote commands are not
supported by this tool
-->
<remote_connection_config name="telnet">
<start_command use_pipes="false">telnet</start_command>
<start_command_common_args>%U %h</start_command_common_args>
<start_command_user_args>-l %u</start_command_user_args>
</remote_connection_config>
<!-- PLINK SSH -->
<remote_connection_config name="plink ssh">
<start_command use_pipes="false">plink</start_command>
<start_command_common_args>-t -C -ssh %U %h %C</start_command_common_args>
<start_command_user_args>-l %u</start_command_user_args>
<extra_ptrn auto_answer="true" answer="y">^Store key in cache\? \(y/n\) *</extra_ptrn>
</remote_connection_config>
<!-- PLINK RSH -->
<remote_connection_config name="plink rsh">
<start_command use_pipes="false">plink</start_command>
<start_command_common_args>-rlogin %U %h %C</start_command_common_args>
<start_command_user_args>-l %u</start_command_user_args>
</remote_connection_config>
<!-- PLINK TELNET -->
<remote_connection_config name="plink telnet">
<start_command use_pipes="false">plink</start_command>
<start_command_common_args>-telnet %h %C</start_command_common_args>
<start_command_user_args></start_command_user_args>
</remote_connection_config>
<!-- SH shell -->
<remote_shell_config name="sh">
<start_command>sh -i</start_command>
<!-- use default generic_prompt -->
<gps_prompt>^---GPSPROMPT--#$</gps_prompt>
<filesystem>unix</filesystem>
<init_commands>
<cmd>PS1=---GPSPROMPT--#</cmd>
<cmd>COLUMNS=2048</cmd>
<cmd>LANG=C</cmd>
<cmd>export LANG COLUMNS</cmd>
<cmd>unalias ls</cmd>
</init_commands>
<exit_commands>
<cmd>exit</cmd>
</exit_commands>
<cd_command>cd %d</cd_command>
<get_status_command>echo $?</get_status_command>
<get_status_ptrn>^([0-9]+)\s*$</get_status_ptrn>
<no_echo_command>stty -echo</no_echo_command>
</remote_shell_config>
<!-- BASH shell -->
<remote_shell_config name="bash">
<start_command>bash --login -i</start_command>
<!-- use default generic_prompt -->
<gps_prompt>^---GPSPROMPT--#$</gps_prompt>
<filesystem>unix</filesystem>
<init_commands>
<cmd>export PS1=---GPSPROMPT--#</cmd>
<cmd>unset PROMPT_COMMAND</cmd>
<cmd>export COLUMNS=2048</cmd>
<cmd>export LANG=C</cmd>
<cmd>unalias ls</cmd>
</init_commands>
<exit_commands>
<cmd>exit</cmd>
</exit_commands>
<cd_command>cd %d</cd_command>
<get_status_command>echo $?</get_status_command>
<get_status_ptrn>^([0-9]+)\s*$</get_status_ptrn>
<no_echo_command>stty -echo</no_echo_command>
</remote_shell_config>
<!-- CSH shell -->
<remote_shell_config name="csh">
<start_command>csh -i</start_command>
<!-- use default generic_prompt -->
<gps_prompt>^---GPSPROMPT--#$</gps_prompt>
<filesystem>unix</filesystem>
<init_commands>
<cmd>set prompt=---GPSPROMPT--#</cmd>
<cmd>setenv COLUMNS 2048</cmd>
<cmd>setenv LANG C</cmd>
<cmd>unalias ls</cmd>
</init_commands>
<exit_commands>
<cmd>exit</cmd>
</exit_commands>
<cd_command>cd %d</cd_command>
<get_status_command>echo $status</get_status_command>
<get_status_ptrn>^([0-9]+)\s*$</get_status_ptrn>
<no_echo_command>stty -echo</no_echo_command>
</remote_shell_config>
<!-- TCSH shell -->
<remote_shell_config name="tcsh">
<start_command>tcsh -i</start_command>
<!-- use default generic_prompt -->
<gps_prompt>^---GPSPROMPT--#$</gps_prompt>
<filesystem>unix</filesystem>
<init_commands>
<cmd>set prompt=---GPSPROMPT--#</cmd>
<cmd>setenv COLUMNS 2048</cmd>
<cmd>setenv LANG C</cmd>
<cmd>unalias ls</cmd>
</init_commands>
<exit_commands>
<cmd>exit</cmd>
</exit_commands>
<cd_command>cd %d</cd_command>
<get_status_command>echo $status</get_status_command>
<get_status_ptrn>^([0-9]+)\s*$</get_status_ptrn>
<no_echo_command>stty -echo</no_echo_command>
</remote_shell_config>
<!-- CMD.EXE shell -->
<remote_shell_config name="cmd.exe">
<start_command>cmd.exe</start_command>
<!-- use default generic_prompt -->
<gps_prompt>^---GPSPROMPT--#$</gps_prompt>
<filesystem>windows</filesystem>
<init_commands>
<cmd>PROMPT ---GPSPROMPT--#</cmd>
</init_commands>
<exit_commands>
<cmd>exit</cmd>
</exit_commands>
<cd_command>cd %d</cd_command>
<get_status_command>echo %errorlevel%</get_status_command>
<get_status_ptrn>^([0-9]+)\s*$</get_status_ptrn>
</remote_shell_config>
<!-- RSYNC CONFIGURATION -->
<rsync_configuration>
<arguments>-az --delete --progress --exclude *.o --exclude *.a --exclude .xrefs</arguments>
</rsync_configuration>
</GPS>
|