LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File pre_checkin.sh of Package postgresql93 (Project server:database:postgresql)

#!/bin/bash

cp -a postgresql??.changes postgresql??-libs.changes
cp -a postgresql??.spec postgresql??-libs.spec

sed -i \
    -e 's/%define buildmain .*/%define buildmain 1/' \
    -e 's/%define buildlibs .*/%define buildlibs 0/' \
    -e 's/%define builddevel .*/%define builddevel 0/' \
    postgresql??.spec

sed -i \
    -e 's/postgresql[[:digit:]]\{2\}/&-libs/g' \
    -e 's/%define buildmain .*/%define buildmain 0/' \
    -e 's/%define buildlibs .*/%define buildlibs 1/' \
    -e 's/%define builddevel .*/%define builddevel 1/' \
    postgresql??-libs.spec

diff -u postgresql??.spec postgresql??-libs.spec