mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-13 08:01:09 +00:00
what-patch: add some path correction & checking
This commit is contained in:
parent
9cf31871aa
commit
7be8b44962
12
what-patch
12
what-patch
@ -1,6 +1,18 @@
|
||||
#!/bin/bash
|
||||
# Copyright 2006, 2007 (C) Kees Cook <kees@ubuntu.com>
|
||||
# Modified by Siegfried-A. Gevatter <rainct@ubuntuwire.com>
|
||||
# License: GPLv2
|
||||
|
||||
if [[ -e debian ]]; then
|
||||
cd . # pass
|
||||
elif [[ -e ../debian ]]; then
|
||||
cd ..
|
||||
elif [[ -e ../patches ]]; then
|
||||
cd ../..
|
||||
else
|
||||
echo "Can't find debian/rules."; exit
|
||||
fi
|
||||
|
||||
for filename in $(echo "debian/rules"; grep ^include debian/rules | fgrep -v '$(' | awk '{print $2}')
|
||||
do
|
||||
fgrep -q patchsys.mk "$filename" && { echo "cdbs"; exit; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user