Kaydet (Commit) 4427bb0c authored tarafından Tor Lillqvist's avatar Tor Lillqvist

The "ProductSource" (MWS name) makes no sense any more

üst f79da8fa
...@@ -126,7 +126,6 @@ copy-stuff: ...@@ -126,7 +126,6 @@ copy-stuff:
echo 'ProductBuildid=3' >> assets/program/versionrc echo 'ProductBuildid=3' >> assets/program/versionrc
echo 'ProductMajor=360' >> assets/program/versionrc echo 'ProductMajor=360' >> assets/program/versionrc
echo 'ProductMinor=1' >> assets/program/versionrc echo 'ProductMinor=1' >> assets/program/versionrc
echo 'ProductSource=OOO350' >> assets/program/versionrc
echo 'ReferenceOOoMajorMinor=3.6' >> assets/program/versionrc echo 'ReferenceOOoMajorMinor=3.6' >> assets/program/versionrc
# #
# .res files # .res files
......
...@@ -103,7 +103,6 @@ copy-stuff: ...@@ -103,7 +103,6 @@ copy-stuff:
echo 'ProductBuildid=3' >> assets/program/versionrc echo 'ProductBuildid=3' >> assets/program/versionrc
echo 'ProductMajor=360' >> assets/program/versionrc echo 'ProductMajor=360' >> assets/program/versionrc
echo 'ProductMinor=1' >> assets/program/versionrc echo 'ProductMinor=1' >> assets/program/versionrc
echo 'ProductSource=OOO350' >> assets/program/versionrc
echo 'ReferenceOOoMajorMinor=3.6' >> assets/program/versionrc echo 'ReferenceOOoMajorMinor=3.6' >> assets/program/versionrc
# #
# .res files # .res files
......
...@@ -70,7 +70,6 @@ buildrcs: ...@@ -70,7 +70,6 @@ buildrcs:
echo "ProductBuildid=3" >> assets/program/versionrc echo "ProductBuildid=3" >> assets/program/versionrc
echo "ProductMajor=360" >> assets/program/versionrc echo "ProductMajor=360" >> assets/program/versionrc
echo "ProductMinor=1" >> assets/program/versionrc echo "ProductMinor=1" >> assets/program/versionrc
echo "ProductSource=OOO350" >> assets/program/versionrc
echo "ReferenceOOoMajorMinor=3.6" >> assets/program/versionrc echo "ReferenceOOoMajorMinor=3.6" >> assets/program/versionrc
echo "UpdateID=LibreOffice_3_en-US" >> assets/program/versionrc echo "UpdateID=LibreOffice_3_en-US" >> assets/program/versionrc
echo "UpdateURL=" >> assets/program/versionrc echo "UpdateURL=" >> assets/program/versionrc
......
...@@ -1456,10 +1456,10 @@ int Desktop::Main() ...@@ -1456,10 +1456,10 @@ int Desktop::Main()
delete pLabelResMgr; delete pLabelResMgr;
#ifdef DBG_UTIL #ifdef DBG_UTIL
//include version ID in non product builds //include buildid in non product builds
::rtl::OUString aDefault("development"); ::rtl::OUString aDefault("development");
aTitle += rtl::OUString(" ["); aTitle += rtl::OUString(" [");
String aVerId( utl::Bootstrap::getProductSource(aDefault)); String aVerId( utl::Bootstrap::getProductBuildIdData(aDefault));
aTitle += aVerId; aTitle += aVerId;
aTitle += ']'; aTitle += ']';
#endif #endif
......
...@@ -579,7 +579,7 @@ void TitleHelper::impl_appendModuleName (::rtl::OUStringBuffer& sTitle) ...@@ -579,7 +579,7 @@ void TitleHelper::impl_appendModuleName (::rtl::OUStringBuffer& sTitle)
void TitleHelper::impl_appendDebugVersion (::rtl::OUStringBuffer& sTitle) void TitleHelper::impl_appendDebugVersion (::rtl::OUStringBuffer& sTitle)
{ {
::rtl::OUString sDefault(RTL_CONSTASCII_USTRINGPARAM("development")); ::rtl::OUString sDefault(RTL_CONSTASCII_USTRINGPARAM("development"));
::rtl::OUString sVersion = ::utl::Bootstrap::getProductSource(sDefault); ::rtl::OUString sVersion = ::utl::Bootstrap::getProductBuildIdData(sDefault);
sTitle.appendAscii(RTL_CONSTASCII_STRINGPARAM(" [")); sTitle.appendAscii(RTL_CONSTASCII_STRINGPARAM(" ["));
sTitle.append(sVersion); sTitle.append(sVersion);
sTitle.appendAscii(RTL_CONSTASCII_STRINGPARAM("]")); sTitle.appendAscii(RTL_CONSTASCII_STRINGPARAM("]"));
......
...@@ -163,13 +163,6 @@ public class BuildID ...@@ -163,13 +163,6 @@ public class BuildID
// System.exit(1); // System.exit(1);
// } // }
public static String getMaster(String _sOfficePath)
{
final String sOfficePath = getOfficePath(_sOfficePath);
final String sMaster = getBuildID(sOfficePath, "ProductSource");
return sMaster;
}
public static String getMinor(String _sOfficePath) public static String getMinor(String _sOfficePath)
{ {
final String sOfficePath = getOfficePath(_sOfficePath); final String sOfficePath = getOfficePath(_sOfficePath);
...@@ -199,10 +192,6 @@ public class BuildID ...@@ -199,10 +192,6 @@ public class BuildID
// sBuildID = getBuildID(sApp); // sBuildID = getBuildID(sApp);
// System.out.println("BuildID is: " + sBuildID); // System.out.println("BuildID is: " + sBuildID);
// //
// String sMaster;
// sMaster = getMaster(sApp);
// System.out.println("Master is: " + sMaster);
//
// String sMinor; // String sMinor;
// sMinor = getMinor(sApp); // sMinor = getMinor(sApp);
// System.out.println("Minor is: " + sMinor); // System.out.println("Minor is: " + sMinor);
......
...@@ -46,9 +46,6 @@ namespace utl ...@@ -46,9 +46,6 @@ namespace utl
/// retrieve the product key; uses the given default, if not found /// retrieve the product key; uses the given default, if not found
static rtl::OUString getProductKey(rtl::OUString const& _sDefault); static rtl::OUString getProductKey(rtl::OUString const& _sDefault);
/// retrieve the product source (MWS name)
static rtl::OUString getProductSource(rtl::OUString const& _sDefault);
/// retrieve the BUILDID information item; uses the given default, if not found /// retrieve the BUILDID information item; uses the given default, if not found
static rtl::OUString getBuildIdData(rtl::OUString const& _sDefault); static rtl::OUString getBuildIdData(rtl::OUString const& _sDefault);
......
...@@ -42,7 +42,6 @@ ...@@ -42,7 +42,6 @@
#define BOOTSTRAP_DATA_NAME SAL_CONFIGFILE("bootstrap") #define BOOTSTRAP_DATA_NAME SAL_CONFIGFILE("bootstrap")
#define BOOTSTRAP_ITEM_PRODUCT_KEY "ProductKey" #define BOOTSTRAP_ITEM_PRODUCT_KEY "ProductKey"
#define BOOTSTRAP_ITEM_PRODUCT_SOURCE "ProductSource"
#define BOOTSTRAP_ITEM_VERSIONFILE "Location" #define BOOTSTRAP_ITEM_VERSIONFILE "Location"
#define BOOTSTRAP_ITEM_BUILDID "buildid" #define BOOTSTRAP_ITEM_BUILDID "buildid"
#define BOOTSTRAP_ITEM_BUILDVERSION "BuildVersion" #define BOOTSTRAP_ITEM_BUILDVERSION "BuildVersion"
...@@ -586,23 +585,12 @@ OUString Bootstrap::getProductKey(OUString const& _sDefault) ...@@ -586,23 +585,12 @@ OUString Bootstrap::getProductKey(OUString const& _sDefault)
} }
// --------------------------------------------------------------------------------------- // ---------------------------------------------------------------------------------------
OUString Bootstrap::getProductSource(OUString const& _sDefault)
{
OUString const csProductSourceItem(RTL_CONSTASCII_USTRINGPARAM(BOOTSTRAP_ITEM_PRODUCT_SOURCE));
OUString sProductSource;
// read ProductSource from version.ini (versionrc)
data().getVersionValue( csProductSourceItem, sProductSource, _sDefault );
return sProductSource;
}
// ---------------------------------------------------------------------------------------
OUString Bootstrap::getBuildVersion(OUString const& _sDefault) OUString Bootstrap::getBuildVersion(OUString const& _sDefault)
{ {
OUString const csBuildVersionItem(BOOTSTRAP_ITEM_BUILDVERSION); OUString const csBuildVersionItem(BOOTSTRAP_ITEM_BUILDVERSION);
OUString sBuildVersion; OUString sBuildVersion;
// read ProductSource from version.ini (versionrc) // read BuildVersion from version.ini (versionrc)
data().getVersionValue( csBuildVersionItem, sBuildVersion, _sDefault ); data().getVersionValue( csBuildVersionItem, sBuildVersion, _sDefault );
return sBuildVersion; return sBuildVersion;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment