blob: bc6546b012f01941a137a2e202ed19c2408c7cae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/bin/bash
if [ -z "$1" ]; then
echo "$0 <Filename / part of to remove>"
exit
fi
echo "---------------------"
grep $1 *.mxml sp-with-simplesign
echo "---------------------"
echo -n "OK to remove ? [Y/n]"
read x
case $x in
"Y"|"y"|"") ;;
*) exit 1 ;;
esac
echo
if (grep -q $1 sp-with-simplesign); then
echo "Found in sp-with-simplesign"
fi
grep $1 *.mxml | sed 's/.*: <xi:include href="\(.*\)"\/>/\1/' | while read file ; do
git rm $file
done
grep $1 *.mxml | sed 's/\(.*\.mxml\): <xi:include href=".*"\/>/\1/' | while read file ; do
sed -i "/$1/d" $file
done
git diff
|