summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-01-04 16:49:09 (GMT)
committerGuido van Rossum <guido@python.org>1999-01-04 16:49:09 (GMT)
commite89d4506c14fdfbd3963b99ed3d7199846a94a7c (patch)
tree750f174613a5bbee420e140d8c746c80d38f138e
parentcad3d47f1e3aeeccf0394a2fb4642ed934751c90 (diff)
downloadcpython-e89d4506c14fdfbd3963b99ed3d7199846a94a7c.zip
cpython-e89d4506c14fdfbd3963b99ed3d7199846a94a7c.tar.gz
cpython-e89d4506c14fdfbd3963b99ed3d7199846a94a7c.tar.bz2
Chris Herborth writes:
Here's a little cleanup of the BeOS/ directory for 1.5.2b2; it makes the ar-fake, linkcc and linkmodule shell scripts a little smarter (and, in the case of PowerPC systems, quieter :-).
-rwxr-xr-xBeOS/ar-fake3
-rwxr-xr-xBeOS/linkcc14
2 files changed, 12 insertions, 5 deletions
diff --git a/BeOS/ar-fake b/BeOS/ar-fake
index a4c1f7f..687a9b5 100755
--- a/BeOS/ar-fake
+++ b/BeOS/ar-fake
@@ -48,6 +48,7 @@ is_abs() {
# PowerPC or x86 systems running BeOS.
build_lib() {
LIB=$1 ; shift
+ SO_LIB=${LIB/.a/.so}
SO_NAME=$1 ; shift
CRUD_NAME=$1 ; shift
@@ -79,7 +80,7 @@ build_lib() {
PARTS="$PARTS ${OBJ_PATH}${OBJ_FILE}"
done < $CRUD_NAME
- $AR_CC -o ${LIB%.a}.so $PARTS $AR_GLUE $EXTRA_LIBS > /dev/null 2>&1
+ $AR_CC -o $SO_LIB $PARTS $AR_GLUE $EXTRA_LIBS > /dev/null 2>&1
return 0
}
diff --git a/BeOS/linkcc b/BeOS/linkcc
index e3708c1..687c92e 100755
--- a/BeOS/linkcc
+++ b/BeOS/linkcc
@@ -36,7 +36,7 @@
LIBRARY="$1"; shift
# What we want to end up with.
-DYNAMIC=${LIBRARY%.a}.so
+DYNAMIC=${LIBRARY/.a/.so}
LINK_DYNAMIC="-l$(basename ${DYNAMIC%.so} | sed -e s,lib,,)"
# Grab the rest of the args and build them into the command used to
@@ -61,10 +61,16 @@ done
# a little overkill, but it'll be OK.
LIBS="-lbe -lnet -lroot"
+case $BE_HOST_CPU in
+ ppc)
+ LIBS="-nodup $LIBS"
+ ;;
+esac
+
# We'll need this or the python binary won't load libpython.so... handy
# for testing.
-( cd .. ; ln -sf `pwd` lib )
+( cd .. ; ln -sf $(pwd) lib )
# Now build the python binary.
-echo "Link command: $LINK_CMD"
-$LINK_CMD
+echo "Link command: $LINK_CMD $LIBS"
+$LINK_CMD $LIBS
td class='mode'>-rw-r--r--examples/declarative/aspectratio/scale_and_crop.qml2
-rw-r--r--examples/declarative/aspectratio/scale_and_crop_simple.qml2
-rw-r--r--examples/declarative/aspectratio/scale_and_sidecrop.qml2
-rw-r--r--examples/declarative/aspectratio/scale_to_fit.qml2
-rw-r--r--examples/declarative/aspectratio/scale_to_fit_simple.qml2
-rw-r--r--examples/declarative/behaviors/SideRect.qml2
-rw-r--r--examples/declarative/behaviors/behavior-example.qml2
-rw-r--r--examples/declarative/border-image/animated.qml2
-rw-r--r--examples/declarative/border-image/borders.qml2
-rw-r--r--examples/declarative/border-image/content/MyBorderImage.qml2
-rw-r--r--examples/declarative/clocks/clocks.qml2
-rw-r--r--examples/declarative/clocks/content/Clock.qml16
-rw-r--r--examples/declarative/connections/connections-example.qml2
-rw-r--r--examples/declarative/connections/content/Button.qml2
-rw-r--r--examples/declarative/dial/content/Dial.qml4
-rw-r--r--examples/declarative/dial/dial-example.qml2
-rw-r--r--examples/declarative/dynamic/dynamic.qml4
-rw-r--r--examples/declarative/dynamic/qml/Button.qml4
-rw-r--r--examples/declarative/dynamic/qml/GenericItem.qml2
-rw-r--r--examples/declarative/dynamic/qml/PaletteItem.qml2
-rw-r--r--examples/declarative/dynamic/qml/PerspectiveItem.qml2
-rw-r--r--examples/declarative/dynamic/qml/Sun.qml2
-rw-r--r--examples/declarative/effects/effects.qml2
-rw-r--r--examples/declarative/fillmode/fillmode.qml2
-rw-r--r--examples/declarative/flipable/content/Card.qml2
-rw-r--r--examples/declarative/flipable/flipable-example.qml2
-rw-r--r--examples/declarative/focus/Core/ContextMenu.qml2
-rw-r--r--examples/declarative/focus/Core/GridMenu.qml2
-rw-r--r--examples/declarative/focus/Core/ListViewDelegate.qml2
-rw-r--r--examples/declarative/focus/Core/ListViews.qml2
-rw-r--r--examples/declarative/focus/Core/qmldir2
-rw-r--r--examples/declarative/focus/focus.qml4
-rw-r--r--examples/declarative/fonts/banner.qml2
-rw-r--r--examples/declarative/fonts/fonts.qml2
-rw-r--r--examples/declarative/fonts/hello.qml2
-rw-r--r--examples/declarative/gestures/experimental-gestures.qml9
-rw-r--r--examples/declarative/gridview/gridview-example.qml2
-rw-r--r--examples/declarative/imageprovider/imageprovider-example.qml2
-rw-r--r--examples/declarative/images/images.qml2
-rw-r--r--examples/declarative/layouts/Button.qml2
-rw-r--r--examples/declarative/layouts/layouts.qml37
-rw-r--r--examples/declarative/layouts/positioners.qml2
-rw-r--r--examples/declarative/listmodel-threaded/timedisplay.qml2
-rw-r--r--examples/declarative/listview/content/ClickAutoRepeating.qml2
-rw-r--r--examples/declarative/listview/content/MediaButton.qml4
-rw-r--r--examples/declarative/listview/dummydata/MyPetsModel.qml2
-rw-r--r--examples/declarative/listview/dummydata/Recipes.qml2
-rw-r--r--examples/declarative/listview/dynamic.qml2
-rw-r--r--examples/declarative/listview/highlight.qml4
-rw-r--r--examples/declarative/listview/itemlist.qml2
-rw-r--r--examples/declarative/listview/listview-example.qml2
-rw-r--r--examples/declarative/listview/recipes.qml8
-rw-r--r--examples/declarative/listview/sections.qml2
-rw-r--r--examples/declarative/mousearea/mouse.qml2
-rw-r--r--examples/declarative/objectlistmodel/view.qml2
-rw-r--r--examples/declarative/package/Delegate.qml2
-rw-r--r--examples/declarative/package/view.qml2
-rw-r--r--examples/declarative/parallax/parallax.qml2
-rw-r--r--examples/declarative/parallax/qml/ParallaxView.qml2
-rw-r--r--examples/declarative/parallax/qml/Smiley.qml2
-rw-r--r--examples/declarative/plugins/com/nokia/TimeExample/Clock.qml12
-rw-r--r--examples/declarative/progressbar/content/ProgressBar.qml2
-rw-r--r--examples/declarative/progressbar/progressbars.qml2
-rw-r--r--examples/declarative/proxywidgets/proxywidgets.qml2
-rw-r--r--examples/declarative/scrollbar/ScrollBar.qml4
-rw-r--r--examples/declarative/scrollbar/display.qml2
-rw-r--r--examples/declarative/searchbox/SearchBox.qml2
-rw-r--r--examples/declarative/searchbox/main.qml2
-rw-r--r--examples/declarative/slideswitch/content/Switch.qml2
-rw-r--r--examples/declarative/slideswitch/slideswitch.qml2
-rw-r--r--examples/declarative/sql/hello.qml2
-rw-r--r--examples/declarative/states/states.qml2
-rw-r--r--examples/declarative/states/transitions.qml2
-rw-r--r--examples/declarative/tabwidget/TabWidget.qml2
-rw-r--r--examples/declarative/tabwidget/tabs.qml8
-rw-r--r--examples/declarative/tic-tac-toe/content/Button.qml2
-rw-r--r--examples/declarative/tic-tac-toe/content/TicTac.qml2
-rw-r--r--examples/declarative/tic-tac-toe/content/pics/board.pngbin11208 -> 1423 bytes-rw-r--r--examples/declarative/tic-tac-toe/content/tic-tac-toe.js145
-rw-r--r--examples/declarative/tic-tac-toe/tic-tac-toe.qml4
-rw-r--r--examples/declarative/tutorials/helloworld/Cell.qml2
-rw-r--r--examples/declarative/tutorials/helloworld/tutorial1.qml2
-rw-r--r--examples/declarative/tutorials/helloworld/tutorial2.qml2
-rw-r--r--examples/declarative/tutorials/helloworld/tutorial3.qml2
-rw-r--r--examples/declarative/tutorials/samegame/samegame1/Block.qml2
-rw-r--r--examples/declarative/tutorials/samegame/samegame1/Button.qml11
-rw-r--r--examples/declarative/tutorials/samegame/samegame1/samegame.qml4
-rw-r--r--examples/declarative/tutorials/samegame/samegame2/Block.qml2
-rw-r--r--examples/declarative/tutorials/samegame/samegame2/Button.qml11
-rw-r--r--examples/declarative/tutorials/samegame/samegame2/samegame.js67
-rw-r--r--examples/declarative/tutorials/samegame/samegame2/samegame.qml4
-rw-r--r--examples/declarative/tutorials/samegame/samegame3/Block.qml2
-rw-r--r--examples/declarative/tutorials/samegame/samegame3/Button.qml11
-rw-r--r--examples/declarative/tutorials/samegame/samegame3/Dialog.qml10
-rw-r--r--examples/declarative/tutorials/samegame/samegame3/samegame.js191
-rw-r--r--examples/declarative/tutorials/samegame/samegame3/samegame.qml10
-rw-r--r--examples/declarative/tutorials/samegame/samegame4/content/BoomBlock.qml6
-rw-r--r--examples/declarative/tutorials/samegame/samegame4/content/Button.qml11
-rw-r--r--examples/declarative/tutorials/samegame/samegame4/content/Dialog.qml10
-rwxr-xr-xexamples/declarative/tutorials/samegame/samegame4/content/samegame.js293
-rwxr-xr-xexamples/declarative/tutorials/samegame/samegame4/highscores/scores.php5
-rw-r--r--examples/declarative/tutorials/samegame/samegame4/samegame.qml18
-rw-r--r--examples/declarative/tvtennis/tvtennis.qml10
-rw-r--r--examples/declarative/velocity/Day.qml132
-rw-r--r--examples/declarative/velocity/cork.jpgbin88766 -> 149337 bytes-rw-r--r--examples/declarative/velocity/note-yellow.pngbin0 -> 54559 bytes-rw-r--r--examples/declarative/velocity/sticky.pngbin15319 -> 0 bytes-rw-r--r--examples/declarative/velocity/velocity.qml96
-rw-r--r--examples/declarative/webview/alerts.qml4
-rw-r--r--examples/declarative/webview/autosize.qml2
-rw-r--r--examples/declarative/webview/content/FieldText.qml2
-rw-r--r--examples/declarative/webview/content/Mapping/Map.qml2
-rw-r--r--examples/declarative/webview/content/SpinSquare.qml6
-rw-r--r--examples/declarative/webview/googleMaps.qml2
-rw-r--r--examples/declarative/webview/inline-html.qml2
-rw-r--r--examples/declarative/webview/newwindows.qml2
-rw-r--r--examples/declarative/webview/transparent.qml2
-rw-r--r--examples/declarative/workerscript/workerscript.qml2
-rw-r--r--examples/declarative/xmldata/daringfireball.qml4
-rw-r--r--examples/declarative/xmldata/yahoonews.qml4
-rw-r--r--examples/declarative/xmlhttprequest/test.qml2
126 files changed, 714 insertions, 645 deletions
diff --git a/examples/declarative/animations/color-animation.qml b/examples/declarative/animations/color-animation.qml
index d8361ba..3616a31 100644
--- a/examples/declarative/animations/color-animation.qml
+++ b/examples/declarative/animations/color-animation.qml
@@ -1,4 +1,4 @@
-import Qt 4.6
+import Qt 4.7
import Qt.labs.particles 1.0
Item {
diff --git a/examples/declarative/animations/easing.qml b/examples/declarative/animations/easing.qml
index 8f2655e..bed4b5f9 100644
--- a/examples/declarative/animations/easing.qml
+++ b/examples/declarative/animations/easing.qml
@@ -1,4 +1,4 @@
-import Qt 4.6
+import Qt 4.7
Rectangle {
id: window
diff --git a/examples/declarative/animations/property-animation.qml b/examples/declarative/animations/property-animation.qml
index fd5eb3c..5afe8ef 100644
--- a/examples/declarative/animations/property-animation.qml
+++ b/examples/declarative/animations/property-animation.qml
@@ -1,4 +1,4 @@
-import Qt 4.6
+import Qt 4.7
Item {
id: window
diff --git a/examples/declarative/aspectratio/face_fit.qml b/examples/declarative/aspectratio/face_fit.qml
index 6a031a4..52cd4c2 100644
--- a/examples/declarative/aspectratio/face_fit.qml
+++ b/examples/declarative/aspectratio/face_fit.qml
@@ -1,4 +1,4 @@
-import Qt 4.6
+import Qt 4.7
// Here, we implement a hybrid of the "scale to fit" and "scale and crop"
// behaviours which will crop up to 25% from *one* dimension if necessary
diff --git a/examples/declarative/aspectratio/face_fit_animated.qml b/examples/declarative/aspectratio/face_fit_animated.qml
index 79e99e9..63fc9c6 100644
--- a/examples/declarative/aspectratio/face_fit_animated.qml
+++ b/examples/declarative/aspectratio/face_fit_animated.qml
@@ -1,4 +1,4 @@
-import Qt 4.6
+import Qt 4.7
// Here, we extend the "face_fit" example with animation to show how truly
// diverse and usage-specific behaviours are made possible by NOT putting a
@@ -19,8 +19,8 @@ Rectangle {
x: (parent.width-width*scale)/2
y: (parent.height-height*scale)/2
SpringFollow on scale {
- source: Math.max(Math.min(face.parent.width/face.width*1.333,face.parent.height/face.height),
- Math.min(face.parent.width/face.width,face.parent.height/face.height*1.333))
+ to: Math.max(Math.min(face.parent.width/face.width*1.333,face.parent.height/face.height),
+ Math.min(face.parent.width/face.width,face.parent.height/face.height*1.333))
spring: 1
damping: 0.05
}
diff --git a/examples/declarative/aspectratio/scale_and_crop.qml b/examples/declarative/aspectratio/scale_and_crop.qml
index 2e2b6ed..a438104 100644
--- a/examples/declarative/aspectratio/scale_and_crop.qml
+++ b/examples/declarative/aspectratio/scale_and_crop.qml
@@ -1,4 +1,4 @@
-import Qt 4.6
+import Qt 4.7
// Here, we implement "Scale and Crop" behaviour.
//
diff --git a/examples/declarative/aspectratio/scale_and_crop_simple.qml b/examples/declarative/aspectratio/scale_and_crop_simple.qml
index e720ce7..1160ec5 100644
--- a/examples/declarative/aspectratio/scale_and_crop_simple.qml
+++ b/examples/declarative/aspectratio/scale_and_crop_simple.qml
@@ -1,4 +1,4 @@
-import Qt 4.6
+import Qt 4.7
// Here, we implement "Scale to Fit" behaviour, using the
// fillMode property.
diff --git a/examples/declarative/aspectratio/scale_and_sidecrop.qml b/examples/declarative/aspectratio/scale_and_sidecrop.qml
index 8230e49..5593ab8 100644
--- a/examples/declarative/aspectratio/scale_and_sidecrop.qml
+++ b/examples/declarative/aspectratio/scale_and_sidecrop.qml
@@ -1,4 +1,4 @@
-import Qt 4.6
+import Qt 4.7
// Here, we implement a variant of "Scale and Crop" behaviour, where we
// crop the sides if necessary to fully fit vertically, but not the reverse.
diff --git a/examples/declarative/aspectratio/scale_to_fit.qml b/examples/declarative/aspectratio/scale_to_fit.qml
index eae4d16..724a36e 100644
--- a/examples/declarative/aspectratio/scale_to_fit.qml
+++ b/examples/declarative/aspectratio/scale_to_fit.qml
@@ -1,4 +1,4 @@
-import Qt 4.6
+import Qt 4.7
// Here, we implement "Scale to Fit" behaviour "manually", rather
// than using the preserveAspect property.
diff --git a/examples/declarative/aspectratio/scale_to_fit_simple.qml b/examples/declarative/aspectratio/scale_to_fit_simple.qml
index 7389581..0e960b4 100644
--- a/examples/declarative/aspectratio/scale_to_fit_simple.qml
+++ b/examples/declarative/aspectratio/scale_to_fit_simple.qml
@@ -1,4 +1,4 @@
-import Qt 4.6
+import Qt 4.7
// Here, we implement "Scale to Fit" behaviour, using the
// fillMode property.
diff --git a/examples/declarative/behaviors/SideRect.qml b/examples/declarative/behaviors/SideRect.qml
index 7caac45..d06f73c 100644
--- a/examples/declarative/behaviors/SideRect.qml
+++ b/examples/declarative/behaviors/SideRect.qml
@@ -1,4 +1,4 @@
-import Qt 4.6
+import Qt 4.7
Rectangle {
id: myRect
diff --git a/examples/declarative/behaviors/behavior-example.qml b/examples/declarative/behaviors/behavior-example.qml