Add some scripts

This commit is contained in:
Mathieu Maret 2010-11-10 15:31:11 +01:00
parent 5c17c23663
commit 136d80b409
3 changed files with 44 additions and 0 deletions

12
scripts/export_mingw.sh Normal file
View File

@ -0,0 +1,12 @@
export CC=i586-mingw32msvc-gcc
export CXX=i586-mingw32msvc-c++
export LD=i586-mingw32msvc-ld
export AR=i586-mingw32msvc-ar
export AS=i586-mingw32msvc-as
export NM=i586-mingw32msvc-nm
export STRIP=i586-mingw32msvc-strip
export RANLIB=i586-mingw32msvc-ranlib
export DLLTOOL=i586-mingw32msvc-dlltool
export OBJDUMP=i586-mingw32msvc-objdump
export RESCOMP=i586-mingw32msvc-windres
export WINDRES=i586-mingw32msvc-windres

1
scripts/msrp.sh Normal file
View File

@ -0,0 +1 @@
findgrep "*.cpp" usleep| tr ":" " "| awk '{print $1}' | sort -u | xargs msrp "usleep\((\d*)\)" "sleep_ms(0,\1/1000)"

31
scripts/sit-dch Normal file
View File

@ -0,0 +1,31 @@
#!/bin/sh
die () {
echo $*
echo "exiting..."
exit 1
}
status=$(git status --short --untracked-files=no)
if [ "$status" != "" ]; then
die "git working dir is not clean"
fi
if [ ! -e debian/changelog ]; then
die "could not find debian/changelog"
fi
if [ "$1" = "" ]; then
echo "usage: $0 <version>"
exit 0
fi
version=$1
shift
set -e
EDITOR=/bin/true git dch --release --new-version $version
git add debian/changelog
git commit -m "debian package v$version"
git tag debian/$version