source code open - cert-svc-ui
[framework/security/cert-svc-ui.git] / build.sh
1 #!/bin/bash
2
3 if [ $1 == "app" ]
4 then
5         echo "Build App"
6         cp ./debian/control.app ./debian/control
7         cp ./debian/changelog.app ./debian/changelog
8         find ./debian -name "rules" -exec perl -pi -e 's/TYPE\ \?\=\ ug/TYPE\ \?\=\ app/g' {} \;
9 else
10         echo "Build UG"
11         cp ./debian/control.ug ./debian/control
12         cp ./debian/changelog.ug ./debian/changelog
13         find ./debian -name "rules" -exec perl -pi -e 's/TYPE\ \?\=\ app/TYPE\ \?\=\ ug/g' {} \;
14 fi
15
16 sbs -b