summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 4dfc169a97..2f71c20776 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