-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PATCH] Remove last bashisms from remaining commands.
Especially also simplify the (quite sloppy) loops to extract ranges of lines, use sed -n -e '<min>,<max>p' for that. Signed-off-by: Pierre Habouzit <[email protected]> Signed-off-by: Josef 'Jeff' Sipek <[email protected]>
- Loading branch information
Showing
15 changed files
with
58 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
#!/bin/bash | ||
#!/bin/sh | ||
# | ||
# Copyright (c) Josef "Jeff" Sipek, 2006, 2007 | ||
# | ||
|
||
USAGE="<file>..." | ||
. guilt | ||
. `dirname $0`/guilt | ||
|
||
if [ $# -lt 1 ]; then | ||
usage | ||
fi | ||
|
||
git-add -- "$@" | ||
|
||
exec git-add -- "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
#!/bin/bash | ||
#!/bin/sh | ||
# | ||
# Copyright (C) 2007 Yasushi SHOJI <[email protected]> | ||
# | ||
|
||
USAGE="[-v] [-a] [-l]" | ||
. guilt | ||
. `dirname $0`/guilt | ||
|
||
opt_verbose= | ||
opt_all= | ||
|
@@ -26,7 +26,7 @@ do | |
done | ||
|
||
IFS=: | ||
if [ $opt_all ]; then | ||
if [ -n "$opt_all" ]; then | ||
cat $applied | ||
else | ||
tail -1 $applied | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
#!/bin/bash | ||
#!/bin/sh | ||
# | ||
# Copyright (c) Josef "Jeff" Sipek, 2006, 2007 | ||
# | ||
|
||
USAGE="" | ||
. guilt | ||
. `dirname $0`/guilt | ||
|
||
if [ $# -ne 0 ]; then | ||
usage | ||
fi | ||
|
||
n=`wc -l < $applied` | ||
n=`expr $n + 1` | ||
n=$(($n + 1)) | ||
|
||
get_series | awk "{ if (NR == $n) print \$0}" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/bash | ||
#!/bin/sh | ||
# | ||
# Copyright (c) 2007 Nur Hussein <[email protected]> | ||
# | ||
|
@@ -12,7 +12,4 @@ PRE=$1 | |
|
||
shift | ||
|
||
for x in "$@" | ||
do | ||
rm "$PRE/$x" | ||
done | ||
(cd $PRE; rm "$@") |