-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sgugshell: make standalone package, have existing script redirect for…
… peoples muscle memory, update readme to reflect this, add contribution link.
- Loading branch information
1 parent
fc5962f
commit f90c4ef
Showing
4 changed files
with
102 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
#!/usr/sgug/bin/bash | ||
|
||
unset PKG_CONFIG_PATH | ||
unset LDFLAGS | ||
unset CFLAGS | ||
unset CPPFLAGS | ||
unset PERL | ||
unset M4 | ||
unset SED | ||
unset GREP | ||
unset BISON | ||
unset YACC | ||
unset SHELL | ||
unset SHELL_PATH | ||
unset CONFIG_SHELL | ||
unset LD_LIBRARY_PATH | ||
unset LD_LIBRARYN32_PATH | ||
unset LD_LIBRARYN64_PATH | ||
unset GCC_ROOT | ||
unset CC | ||
unset CXX | ||
unset LD | ||
unset AR | ||
unset RANLIB | ||
unset PYTHONPATH | ||
unset PYTHONHOME | ||
|
||
SGUG_ROOT=/usr/sgug | ||
SGUG_BIN=$SGUG_ROOT/bin | ||
SGUG_SBIN=$SGUG_ROOT/sbin | ||
SGUG_LIB=$SGUG_ROOT/lib32 | ||
|
||
export PATH=$SGUG_BIN:$SGUG_SBIN:/usr/bin/X11:/usr/bin:/bin:/usr/sbin:/usr/bsd | ||
|
||
# Explicit library paths | ||
export LD_LIBRARYN32_PATH=$SGUG_LIB:/usr/lib32:/lib32:/usr/lib:/lib | ||
# Without /usr/lib or /lib | ||
#export LD_LIBRARYN32_PATH=$SGUG_LIB:/usr/lib32:/lib32 | ||
|
||
# Use this when sgug stuff has validated RPATH to reference the libs | ||
#export LD_LIBRARYN32_PATH=/usr/lib32:/lib32:/usr/lib:/lib | ||
|
||
# NOTE: Setting pkgconfig path like below is unnecessary - the two | ||
# listed paths are the default - and are searched last resort | ||
# even when PKG_CONFIG_PATH is set to something. | ||
#export PKG_CONFIG_PATH=$SGUG_LIB/pkgconfig:$SGUG_ROOT/share/pkgconfig | ||
|
||
export MANPATH=$SGUG_ROOT/share/man:/usr/share/catman/a_man:/usr/share/catman/g_man:/usr/share/catman/p_man:/usr/share/catman/u_man | ||
|
||
# Work around localisation issue with libiconv | ||
export LC_ALL=C | ||
|
||
export PS1='[sgugshell \u@\h \W]\$ ' | ||
# If ~/.sgug_bashrc exists, use that as our init file. | ||
[ -e $HOME/.sgug_bashrc ] && exec bash --rcfile $HOME/.sgug_bashrc -i | ||
exec bash --norc -i |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
Summary: SGUG Environment Shell | ||
Name: sgugshell | ||
Version: 0.1.0 | ||
Release: 1%{?dist} | ||
License: GPLv3+ | ||
URL: https://github.com/sgidevnet/sgug-rse | ||
Source: sgugshell | ||
|
||
BuildRequires: bash, coreutils | ||
|
||
%description | ||
A utility shell that sets a correct started environment for developing with | ||
the SGUG RPM software environment. | ||
|
||
%prep | ||
%setup -c -T | ||
cp -p %{sources} . | ||
|
||
%install | ||
mkdir -p $RPM_BUILD_ROOT%{_bindir} | ||
install -p -m 755 -t %{buildroot}%{_bindir} sgugshell | ||
|
||
%files | ||
%{_bindir}/sgugshell | ||
|
||
%changelog | ||
* Sat Dec 12 2020 Daniel Hams <[email protected]> - 0.1.0 | ||
- First Package |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,3 @@ | ||
#!/usr/sgug/bin/bash | ||
|
||
unset PKG_CONFIG_PATH | ||
unset LDFLAGS | ||
unset CFLAGS | ||
unset CPPFLAGS | ||
unset PERL | ||
unset M4 | ||
unset SED | ||
unset GREP | ||
unset BISON | ||
unset YACC | ||
unset SHELL | ||
unset SHELL_PATH | ||
unset CONFIG_SHELL | ||
unset LD_LIBRARY_PATH | ||
unset LD_LIBRARYN32_PATH | ||
unset LD_LIBRARYN64_PATH | ||
unset GCC_ROOT | ||
unset CC | ||
unset CXX | ||
unset LD | ||
unset AR | ||
unset RANLIB | ||
unset PYTHONPATH | ||
unset PYTHONHOME | ||
|
||
SGUG_ROOT=/usr/sgug | ||
SGUG_BIN=$SGUG_ROOT/bin | ||
SGUG_SBIN=$SGUG_ROOT/sbin | ||
SGUG_LIB=$SGUG_ROOT/lib32 | ||
|
||
export PATH=$SGUG_BIN:$SGUG_SBIN:/usr/bin/X11:/usr/bin:/bin:/usr/sbin:/usr/bsd | ||
|
||
# Explicit library paths | ||
export LD_LIBRARYN32_PATH=$SGUG_LIB:/usr/lib32:/lib32:/usr/lib:/lib | ||
# Without /usr/lib or /lib | ||
#export LD_LIBRARYN32_PATH=$SGUG_LIB:/usr/lib32:/lib32 | ||
|
||
# Use this when sgug stuff has validated RPATH to reference the libs | ||
#export LD_LIBRARYN32_PATH=/usr/lib32:/lib32:/usr/lib:/lib | ||
|
||
# NOTE: Setting pkgconfig path like below is unnecessary - the two | ||
# listed paths are the default - and are searched last resort | ||
# even when PKG_CONFIG_PATH is set to something. | ||
#export PKG_CONFIG_PATH=$SGUG_LIB/pkgconfig:$SGUG_ROOT/share/pkgconfig | ||
|
||
export MANPATH=$SGUG_ROOT/share/man:/usr/share/catman/a_man:/usr/share/catman/g_man:/usr/share/catman/p_man:/usr/share/catman/u_man | ||
|
||
# Work around localisation issue with libiconv | ||
export LC_ALL=C | ||
|
||
export PS1='[sgugshell \u@\h \W]\$ ' | ||
# If ~/.sgug_bashrc exists, use that as our init file. | ||
[ -e $HOME/.sgug_bashrc ] && exec bash --rcfile $HOME/.sgug_bashrc -i | ||
exec bash --norc -i | ||
exec sgugshell |