Remove bashisms.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3001 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
83d6c2e8e2
commit
a69335cd96
@ -17,6 +17,8 @@
|
||||
src/highlighting.c, src/sciwrappers.c, src/sciwrappers.h:
|
||||
Fix using direct Scintilla access in document.c and callbacks.
|
||||
Add wrapper functions instead.
|
||||
* scripts/svn-add.sh, scripts/svn-changes.sh:
|
||||
Remove bashisms.
|
||||
|
||||
|
||||
2008-09-25 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
FILE=$1
|
||||
if [ -n $FILE ]; then
|
||||
if [ -n "$FILE" ]; then
|
||||
svn add $FILE
|
||||
svn propset svn:keywords 'Author Date Id Revision' $FILE
|
||||
svn propset svn:eol-style native $FILE
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
# Copyright: 2008, Nick Treleaven
|
||||
# License: GNU GPL V2 or later
|
||||
# Warranty: NONE
|
||||
@ -7,7 +7,7 @@
|
||||
# format, plus warnings about any unknown files.
|
||||
|
||||
# -s for spaces instead of comma separation
|
||||
if [[ $1 == -s ]]; then
|
||||
if [ "$1" = -s ]; then
|
||||
SPACES="set"
|
||||
shift
|
||||
fi
|
||||
@ -20,12 +20,12 @@ files=`echo "$status" |egrep '^[A-Z]'`
|
||||
# get filenames on one line
|
||||
files=`echo "$files" |egrep -o '[^A-Z].[ ]+(.+)' |xargs`
|
||||
# add commas if -s argument is not given
|
||||
if [[ -z $SPACES ]]; then
|
||||
if [ -z "$SPACES" ]; then
|
||||
files=`echo "$files" |sed "s/ /, /g"`
|
||||
fi
|
||||
|
||||
# show modifications
|
||||
if [[ -n $files ]]; then
|
||||
if [ -n "$files" ]; then
|
||||
echo 'Changes:'
|
||||
if [[ -z $SPACES ]]; then
|
||||
files+=':'
|
||||
@ -41,7 +41,7 @@ fi
|
||||
|
||||
# warn about anything that isn't a modification or addition
|
||||
warn=`echo "$status" |egrep '^[^MA]'`
|
||||
if [[ -n $warn ]]; then
|
||||
if [ -n "$warn" ]; then
|
||||
echo 'Warnings:'
|
||||
echo $warn
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user