oolite/debian/apply-patches
hikari ba1c215ff6 Modifed Linux specific portions of the build rules.
Added Ubuntu/Debian build glue.



git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1029 127b21dd-08f5-0310-b4b7-95ae10353056
2007-06-11 17:24:23 +00:00

32 lines
517 B
Bash
Executable File

#!/bin/sh
#
# Quick and dirty patching script.
# Copyright (C) 2007 Chris Crowther <hikari@hikari.org.uk>
#
# $Id$
#
PATCHES="01_oolite.desktop.patch"
FLAGS=""
while getopts ":R" option
do
case $option in
R)
if test -f patch; then
echo "Patches have been applied: reversing."
export FLAGS="$FLAGS -R";
else
echo "Patches have not been applied: not reversing."
exit 0;
fi
;;
esac
done
echo "Using patch flags: $FLAGS"
for PATCH in $PATCHES; do
patch $FLAGS -p0 < debian/patches/$PATCH
done;