Download this file
96 lines (81 with data), 4.4 kB
#!/bin/echo usage: source
########################################################### {{{1 ###########
# Copyright © 2005 … 2023 Martin Krischik
############################################################################
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
########################################################### }}}1 ###########
typeset -x -g -U -T C_INCLUDE_PATH c_include_path ":"
typeset -x -g -U -T CPLUS_INCLUDE_PATH cplus_include_path ":"
typeset -x -g -U -T FPATH fpath ":"
typeset -x -g -U -T LD_LIBRARY_PATH ld_library_path ":"
typeset -x -g -U -T LDFLAGS ldflags " "
typeset -x -g -U -T LIBRARY_PATH library_path ":"
typeset -x -g -U -T PATH path ":"
typeset -f -u realFile
fpath=(~/.functions ${fpath})
typeset -x -g opt="/opt/local"
if test -d "${opt}/homebrew"; then
typeset -x -g brew="${brew-${opt}/homebrew}"
elif test -d "/usr/local"; then
typeset -x -g brew="${brew-/usr/local}"
else
echo "Please install Brew"
false
fi
typeset -x -g WORK=$(realFile "/Work")
typeset -x -g Developer="/Applications/Developer"
typeset -x -g MODULE_NAME="${MODULE_NAME-WikiBook-Ada}"
typeset -x -g PROJECT_NAME="${PROJECT_NAME-WikiBook-Ada}"
typeset -x -g GPS_HOME=$(realFile "${Developer}/GNATStudio.app")
typeset -x -g GNAT_HOME=$(realFile "${opt}/GNAT/2020")
typeset -x -g Workspace=$(realFile "${Workspace-${WORK}/Workspaces/${PROJECT_NAME}}")
typeset -x -g CLION_HOME=$(realFile "${Developer}/CLion.app")
typeset -x -g PROJECT_HOME=$(realFile "${PROJECT_HOME-${WORK}/Projects/${PROJECT_NAME}}")
typeset -x -g Homepage=$(realFile "${Homepage-${WORK}/HomePage/wikibook-ada}")
typeset Web_Server="krischik@web.sourceforge.net:/home/project-web/wikibook-ada"
typeset Local_Index="${PROJECT_HOME}/Library/alire-index/index"
typeset Comunity_Index="${HOME}/.config/alire/indexes/community/repo/index"
typeset Krischik_Index="${HOME}/.config/alire/indexes/krischik/repo/index"
typeset SourceForce_Local="${PROJECT_HOME}/Downloads"
typeset SourceForce_Remote="krischik@frs.sourceforge.net:/home/frs/project/wikibook-ada"
typeset -x -g GPS_ROOT="${GPS_HOME}/Contents/Resources"
typeset -x -g PYTHONPATH="${GPS_HOME}/Contents/Resources/share/gnatstudio/python"
typeset -x -g XDG_DATA_DIRS="${GPS_HOME}/Contents/Resources/share"
typeset -x -g GTK_EXE_PREFIX="${GPS_HOME}/Contents/Resources"
typeset -x -g GI_TYPELIB_PATH="${GPS_HOME}/Contents/Resources/lib/girepository-1.0"
typeset -x -g GNATSTUDIO_PYTHONHOME="${GPS_HOME}/Contents/Resources"
typeset -x -g GDK_PIXBUF_MODULE_FILE="${GPS_HOME}/Contents/Resources/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache"
path=(${PROJECT_HOME}/Utilities ${path})
path=(${GPS_HOME}/Contents/MacOS ${path})
path=(${GNAT_HOME}/bin ${path})
fpath=(${PROJECT_HOME}/Utilities ${fpath})
c_include_path=(${brew}/include ${c_include_path})
cplus_include_path=(${brew}/include ${cplus_include_path})
ld_library_path=(${brew}/lib ${ld_library_path})
library_path=(${brew}/lib ${library_path})
ldflags=(-L${brew}/lib ${ldflags})
function lxpm ()
{
Server_Name=${MODULE_NAME//\//_}
if test -z "${1}"; then
${VIM}/../../MacOS/Vim -g --servername ${Server_Name} 1>/dev/null 2>/dev/null &
else
${VIM}/../../MacOS/Vim -g --servername ${Server_Name} --remote-silent "${@}" 1>/dev/null 2>/dev/null &
fi;
return;
} # lxpm
############################################################ {{{1 ###########
# vim: set wrap tabstop=8 shiftwidth=4 softtabstop=4 noexpandtab :
# vim: set textwidth=0 filetype=zsh fileencoding=utf8 foldmethod=marker nospell :
×
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.