source: src-sh/about/install.sh @ 37d4a8c

releng/10.0.2
Last change on this file since 37d4a8c was 37d4a8c, checked in by Kris Moore <kris@…>, 5 months ago

Fix setting the PCBSDVERSION variable for src-sh scripts

  • Property mode set to 100755
File size: 341 bytes
Line 
1#!/bin/sh
2# Script to set "about" version number
3
4# Source config file
5. ../config.sh
6
7DEFAULT="/usr/local"
8
9if [ -z "$1" ] ; then
10        LB="${DEFAULT}" 
11else
12        LB="${1}" 
13fi
14
15DIR=`dirname $0`
16DIR=`realpath $DIR`
17cd ${DIR}
18
19if [ ! -d "${LB}/share/pcbsd" ] ; then
20  mkdir -p ${LB}/share/pcbsd/
21fi
22
23echo "$PCBSDVERSION" > ${LB}/share/pcbsd/version
Note: See TracBrowser for help on using the repository browser.