Permalink
Browse files

Fix setting the PCBSDVERSION variable for src-sh scripts

  • Loading branch information...
1 parent 26c7c82 commit 37d4a8c44997a41ada7135907bd1d85fcc775225 @kmoore134 kmoore134 committed Mar 12, 2014
Showing with 11 additions and 2 deletions.
  1. +1 −0 src-qt4/config.h
  2. +3 −2 src-sh/about/install.sh
  3. +7 −0 src-sh/config.sh
View
@@ -25,6 +25,7 @@
*/
// Set the PC-BSD specific version string for our utils
+// When you update this tag, be sure to update ../src-sh/config.sh as well
#define PCBSDVERSION QString("10.0.2-PRE")
// Set the LOCALBASE
View
@@ -1,7 +1,8 @@
#!/bin/sh
# Script to set "about" version number
-VER=`cat ../../src-qt4/config.h | grep '#define PCBSDVERSION' | cut -d '"' -f 2`
+# Source config file
+. ../config.sh
DEFAULT="/usr/local"
@@ -19,4 +20,4 @@ if [ ! -d "${LB}/share/pcbsd" ] ; then
mkdir -p ${LB}/share/pcbsd/
fi
-echo "$VER" > ${LB}/share/pcbsd/version
+echo "$PCBSDVERSION" > ${LB}/share/pcbsd/version
View
@@ -0,0 +1,7 @@
+#!/bin/sh
+# Configuration options for src-sh applications
+
+# Set the PC-BSD version number
+# When you update this tag, be sure to update ../src-qt4/config.h as well
+PCBSDVERSION="10.0.2-PRE"
+export PCBSDVERSION

0 comments on commit 37d4a8c

Please sign in to comment.