[PC-BSD Commits] r1536 - in pbibuild/modules/powerpointviewer2003: . overlay-dir/bin
svn at pcbsd.org
svn at pcbsd.org
Tue Mar 4 11:05:19 PST 2008
Author: kris
Date: 2008-03-04 11:05:19 -0800 (Tue, 04 Mar 2008)
New Revision: 1536
Modified:
pbibuild/modules/powerpointviewer2003/build.sh
pbibuild/modules/powerpointviewer2003/overlay-dir/bin/pptview2003
Log:
Modify pptviewer2003 so that we dont need to edit it each time wine is updated
Modified: pbibuild/modules/powerpointviewer2003/build.sh
===================================================================
--- pbibuild/modules/powerpointviewer2003/build.sh 2008-03-04 18:43:48 UTC (rev 1535)
+++ pbibuild/modules/powerpointviewer2003/build.sh 2008-03-04 19:05:19 UTC (rev 1536)
@@ -8,7 +8,9 @@
# MODULEDIR = The location of the module directory for this PBI
# PORTVER = Version number of the port we used to build
##############################################################################
+
# Save the right version number in the removepbi.sh script
-sed -e "s,CHANGEME,PowerpointViewer20030.9.54${PORTVER},g" ${PBIDIR}/bin/pptview2003 > /tmp/pptview2003
-mv /tmp/pptview2003 ${PBIDIR}/bin/pptview2003
-chmod 755 ${PBIDIR}/bin/pptview2003
\ No newline at end of file
+MODFILE="${PBIDIR}/bin/pptview2003"
+sed -e "s,CHANGE,PowerpointViewer2003${PORTVER},g" ${MODFILE} > ${MODFILE}.tmp
+mv ${MODFILE}.tmp ${MODFILE}
+chmod 755 ${MODFILE}
Modified: pbibuild/modules/powerpointviewer2003/overlay-dir/bin/pptview2003
===================================================================
--- pbibuild/modules/powerpointviewer2003/overlay-dir/bin/pptview2003 2008-03-04 18:43:48 UTC (rev 1535)
+++ pbibuild/modules/powerpointviewer2003/overlay-dir/bin/pptview2003 2008-03-04 19:05:19 UTC (rev 1536)
@@ -1,6 +1,5 @@
#!/bin/sh
-PROGDIR="PowerpointViewer20030.9.55"
-#PROGDIR="CHANGEME"
+PROGDIR="CHANGE"
cd
export WINEPREFIX="/Programs/${PROGDIR}/PPTVIEW2003"
/Programs/${PROGDIR}/bin/wine "/Programs/${PROGDIR}/PPTVIEW2003/drive_c/Program Files/Microsoft Office/PowerPoint Viewer/PPTVIEW.EXE" "$@"
More information about the Commits
mailing list