(CTR/3DS) add a warning message when mprotect is called without the
[pcsx_rearmed.git] / debian_maemo / buildpkg
CommitLineData
029295b0
PI
1#!/bin/bash -e
2
3NAME=`head debian/changelog -n1 | sed -n 's/^\(.*\) (\(.*\)) .*/\1-\2/p'`
4[[ -z $NAME ]] && { echo "Could not extract package name and version from debian/changelog" 2>&1; exit 1; }
5
6rm -rf ../$NAME
7cp -r ../`basename $PWD` ../$NAME
8cd ../$NAME
9rm -rf .git*
10find . -depth -name .svn -type d -exec rm -r {} \;
11find . -name '*~' -exec rm {} \;
12
13LD_LIBRARY_PATH=/usr/lib dpkg-buildpackage -rfakeroot $*