diff options
author | Josep Torra <n770galaxy@gmail.com> | 2013-01-04 10:33:13 +0100 |
---|---|---|
committer | Josep Torra <n770galaxy@gmail.com> | 2013-01-04 10:33:13 +0100 |
commit | 5ad6648ecd72fb59d785198bdcf9800ce4d7ddba (patch) | |
tree | f49be87e2bb92ba0d78b0c5bf337acf8d4760abd /dist.sh | |
parent | 23ff1a7d967bff2d468762ad2a8c5f2eb730d359 (diff) |
Fix build with latest diablo
Diffstat (limited to 'dist.sh')
-rwxr-xr-x | dist.sh | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -1,10 +1,10 @@ #!/scratchbox/tools/bin/bash -DBUS_VERSION_MAJOR=$(pkg-config dbus-1 --modversion | awk '{split($$1,t,/\./) ; print t[1]}') -DBUS_VERSION_MINOR=$(pkg-config dbus-1 --modversion | awk '{split($$1,t,/\./) ; print t[2]}') +DBUS_VERSION_MAJOR=$(pkg-config dbus-1 --modversion | awk '{split($0,t,/\./) ; print t[1]}') +DBUS_VERSION_MINOR=$(pkg-config dbus-1 --modversion | awk '{split($0,t,/\./) ; print t[2]}') -HILDON_VERSION_MAJOR=$(pkg-config hildon-1 --modversion | awk '{split($$1,t,/\./) ; print t[1]}') -HILDON_VERSION_MINOR=$(pkg-config hildon-1 --modversion | awk '{split($$1,t,/\./) ; print t[2]}') +HILDON_VERSION_MAJOR=$(pkg-config hildon-1 --modversion | awk '{split($0,t,/\./) ; print t[1]}') +HILDON_VERSION_MINOR=$(pkg-config hildon-1 --modversion | awk '{split($0,t,/\./) ; print t[2]}') MAEMO_VERSION="1" if [ $DBUS_VERSION_MINOR -gt 23 ]; then @@ -15,8 +15,11 @@ if [ $HILDON_VERSION_MAJOR -eq 1 ]; then MAEMO_VERSION="4" fi -echo "Maemo version: $MAEMO_VERSION Hildon version: $HILDON_VERSION_MAJOR.$HILDON_VERSION_MINOR" +if [ $HILDON_VERSION_MAJOR -eq 2 ]; then +MAEMO_VERSION="4" +fi +echo "Maemo version: $MAEMO_VERSION Hildon version: $HILDON_VERSION_MAJOR.$HILDON_VERSION_MINOR" rm -rf *~ # Build binary package |