#!/bin/sh

# brc
# Copyright (C) 2018 Joseph Rosevear

# This code is part of an application of SAM for
# GNU/Linux Slackware known as SAM-GLS.

# SAM-GLS 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 3 of the License, or (at
# your option) any later version.

# SAM-GLS 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, see <http://www.gnu.org/licenses/>.

# (Slackware is a registered trademark of Patrick Volkerding and
# Slackware Linux, Inc.)



# Joseph Rosevear 180330 This script was made from
# $sam_distro/tips/rc.SAM as part of a transition of method.  The
# result was a script (this) that does only one thing, it makes
# $sam_temp_base/scratch.

# It does not replace the script .bashrc that has a similar name.  You
# will probably want a .bashrc in your home directory.

# Joseph Rosevear 180330 I changed the code so it uses $sam_temp_base
# which is defined by $sam_root/bprofile.



# Joseph Rosevear 170305 this code doesn't work with bree, so I changed
# it to something better.
# user=`basename $HOME`
#user=`whoami`

# Joseph Rosevear 170305 I decided not to wipe it.
# rm -R /tmp/$user

#mkdir --parents /tmp/$user/scratch

# Joseph Rosevear 180330 This makes more sense.
mkdir --parents $sam_temp_base/scratch
