source: src-sh/about/install.sh @ 5053ee4

enter/10releng/10.0.1releng/10.0.2releng/10.0.3releng/10.1releng/10.1.1releng/10.1.2releng/10.2
Last change on this file since 5053ee4 was 5053ee4, checked in by Kris Moore <kris@…>, 17 months ago

Update src-sh/about script to auto-create the
/usr/local/share/pcbsd/version file during installation

This file will be used to pull the specific PC-BSD version string

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