aboutsummaryrefslogtreecommitdiff
path: root/libraries/pgplot
diff options
context:
space:
mode:
authorDavid Spencer <idlemoor@slackbuilds.org>2018-09-04 23:38:47 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-09-08 08:37:39 +0700
commit7f0647b5168e20757b507c0deaa6e18ce48ce1d8 (patch)
tree2c5463e0cbe0c0f697af66fe648117677a994a36 /libraries/pgplot
parent94207f6f4226def5387f5f586a2a299a771662cb (diff)
libraries/pgplot: Fixed profile scripts.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'libraries/pgplot')
-rw-r--r--libraries/pgplot/pgplot.SlackBuild6
1 files changed, 3 insertions, 3 deletions
diff --git a/libraries/pgplot/pgplot.SlackBuild b/libraries/pgplot/pgplot.SlackBuild
index 4dfc169a978fc..2f71c20776e13 100644
--- a/libraries/pgplot/pgplot.SlackBuild
+++ b/libraries/pgplot/pgplot.SlackBuild
@@ -106,7 +106,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
# /etc/profile.d scripts
mkdir -p $PKG/etc/profile.d/
-cat << EOF > $PKG/etc/profile.d/pgplot.sh
+cat << EOF > $PKG/etc/profile.d/pgplot.sh.new
#!/bin/sh
export PGPLOT_DIR="/usr/lib${LIBDIRSUFFIX}/$PRGNAM"
export LD_LIBRARY_PATH="\$LD_LIBRARY_PATH:/usr/lib${LIBDIRSUFFIX}/$PRGNAM"
@@ -115,7 +115,7 @@ export LD_LIBRARY_PATH="\$LD_LIBRARY_PATH:/usr/lib${LIBDIRSUFFIX}/$PRGNAM"
# export PGPLOT_DEV="/XWINDOW"
EOF
-cat << EOF > $PKG/etc/profile.d/pgplot.csh
+cat << EOF > $PKG/etc/profile.d/pgplot.csh.new
#!/bin/csh
setenv PGPLOT_DIR /usr/lib${LIBDIRSUFFIX}/$PRGNAM
setenv LD_LIBRARY_PATH \$LD_LIBRARY_PATH:/usr/lib${LIBDIRSUFFIX}/$PRGNAM
@@ -124,7 +124,7 @@ setenv LD_LIBRARY_PATH \$LD_LIBRARY_PATH:/usr/lib${LIBDIRSUFFIX}/$PRGNAM
# setenv PGPLOT_DEV /XWINDOW
EOF
-chmod 0755 $PKG/etc/profile.d/pgplot.{sh,csh}
+chmod 0755 $PKG/etc/profile.d/pgplot.{sh,csh}.new
# Copying documentation and changelogs