Search
SailfishOS Open Build Service
>
Projects
>
home:leviathan
>
plasma-mobile-rootfs
> pre_checkin.sh
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File pre_checkin.sh of Package plasma-mobile-rootfs
#!/bin/bash set -e CPP=cpp if [ -e /usr/bin/cpp-4.6 ]; then # SLES11 has cpp4.3 as default which generates spurious blank lines CPP=cpp-4.6 fi for i in PlasmaActive-tf201; do if [[ "$i" == PlasmaActive-* ]]; then image_type=TYPE_PLASMA_ACTIVE image_type_string="PlasmaActive" flavor="${i/PlasmaActive-/}" fi image_type_info="-DIMAGE_TYPE=$image_type -DIMAGE_TYPE_STRING=$image_type_string" t=$(mktemp) echo "Formatting $i for board: $flavor" $CPP $image_type_info -DIS_FLAVOR_$flavor=1 -DFLAVOR_TYPE=$flavor -P Images.kiwi.in -o $t # this will abort if there's an error (see set -e) xmllint --format $t --output $i.kiwi || break rm -f $t done