[PC-BSD Commits] r7472 - pcbsd-projects/pbi-manager

svn at pcbsd.org svn at pcbsd.org
Tue Aug 31 11:13:51 PDT 2010


Author: kris
Date: 2010-08-31 11:13:51 -0700 (Tue, 31 Aug 2010)
New Revision: 7472

Modified:
   pcbsd-projects/pbi-manager/pbi-manager
Log:

Added a built date to created PBIs



Modified: pcbsd-projects/pbi-manager/pbi-manager
===================================================================
--- pcbsd-projects/pbi-manager/pbi-manager	2010-08-31 17:24:08 UTC (rev 7471)
+++ pcbsd-projects/pbi-manager/pbi-manager	2010-08-31 18:13:51 UTC (rev 7472)
@@ -574,6 +574,7 @@
 	PBI_MKPORTAFTER=""
 	PBI_PORTSDIR=""
 	PBI_PROGAUTHOR=""
+	PBI_PROGMDATE=""
 	PBI_PROGNAME=""
 	PBI_PROGDIRNAME=""
 	PBI_PROGDIRPATH=""
@@ -854,6 +855,7 @@
 	echo "-----------------------------------------------------"
 	echo "Name: ${PBI_PROGNAME}"
 	echo "Version: ${PBI_PROGVERSION}"
+	echo "Built: ${PBI_PROGMDATE}"
 	echo "Prefix: ${PBI_ORIGPROGDIRPATH}"
 	echo "Author: ${PBI_PROGAUTHOR}"
 	echo "Website: ${PBI_PROGWEB}"
@@ -976,6 +978,7 @@
 	PBI_PROGNAME=""
         PBI_PROGVERSION=""
         PBI_PROGAUTHOR=""
+        PBI_PROGMDATE=""
         PBI_PROGWEB=""
         PBI_APPARCH=""
         PBI_FBSDVER=""
@@ -989,6 +992,7 @@
         PBI_PROGVERSION="`cat ${1}/pbi_version`"
         PBI_PROGAUTHOR="`cat ${1}/pbi_author`"
         PBI_PROGWEB="`cat ${1}/pbi_web 2>/dev/null`"
+        PBI_PROGMDATE="`cat ${1}/pbi_mdate 2>/dev/null`"
         PBI_APPARCH="`cat ${1}/pbi_arch 2>/dev/null`"
         PBI_FBSDVER="`cat ${1}/pbi_fbsdver 2>/dev/null`"
         PBI_APPCREATEVER="`cat ${1}/pbi_createver 2>/dev/null`"
@@ -1819,6 +1823,7 @@
 	echo "${PBI_PROGVERSION}" > "${PBI_HEADERDIR}/pbi_version"
 	echo "${PBI_PROGAUTHOR}" > "${PBI_HEADERDIR}/pbi_author"
 	echo "${PBI_PROGWEB}" > "${PBI_HEADERDIR}/pbi_web"
+	date "+%Y%m%d %H%M%S" > "${PBI_HEADERDIR}/pbi_mdate"
 
 	# Do we have a license to accept?
 	if [ -e "${PBI_CONFDIR}/${PBI_LICENSEFILE}" ] ; then



More information about the Commits mailing list