File: make_deb

package info (click to toggle)
mysql-workbench 5.2.40%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 53,880 kB
  • sloc: cpp: 419,850; yacc: 74,784; xml: 54,510; python: 31,455; sh: 9,423; ansic: 4,736; makefile: 2,442; php: 529; java: 237
file content (18 lines) | stat: -rwxr-xr-x 350 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
ln -s build/debian .

if [ -f ~/target_distro ]; then
	distro=$(cat ~/target_distro)
    if head -1 debian/changelog|grep "$distro"; then
        echo
    else
	    sed -e "1s/(\\(.*\\))/(\1$distro)/" debian/changelog > chlog
    fi
	mv -f chlog debian/changelog
fi

DEB_BUILD_OPTIONS=debug dpkg-buildpackage

if [ $? -eq 2 ]; then
	exit 2
fi
exit 0