mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-04-26 12:18:45 +02:00
Use the new arguments from redo v0.10.
(apenwarr: also updates to the matching, latest minimal/do)
This commit is contained in:
parent
39425a03c5
commit
cba8b261c6
@ -1,6 +1,6 @@
|
|||||||
exec >&2
|
exec >&2
|
||||||
if pandoc </dev/null 2>/dev/null; then
|
if pandoc </dev/null 2>/dev/null; then
|
||||||
pandoc -s -r markdown -w man -o $3 $1.md
|
pandoc -s -r markdown -w man -o $3 $2.md
|
||||||
else
|
else
|
||||||
echo "Warning: pandoc not installed; can't generate manpages."
|
echo "Warning: pandoc not installed; can't generate manpages."
|
||||||
redo-always
|
redo-always
|
||||||
|
2
src/do
2
src/do
@ -121,7 +121,7 @@ _do()
|
|||||||
fi
|
fi
|
||||||
[ ! -e "$DO_BUILT" ] || [ ! -d "$(dirname "$target")" ] ||
|
[ ! -e "$DO_BUILT" ] || [ ! -d "$(dirname "$target")" ] ||
|
||||||
: >>"$target.did"
|
: >>"$target.did"
|
||||||
( _run_dofile "$base" "$ext" "$tmp.tmp" )
|
( _run_dofile "$target" "$base" "$tmp.tmp" )
|
||||||
rv=$?
|
rv=$?
|
||||||
if [ $rv != 0 ]; then
|
if [ $rv != 0 ]; then
|
||||||
printf "do: %s%s\n" "$DO_DEPTH" \
|
printf "do: %s%s\n" "$DO_DEPTH" \
|
||||||
|
@ -3,9 +3,9 @@ redo-ifchange sources.list
|
|||||||
redo-ifchange Info.plist bits/runpython \
|
redo-ifchange Info.plist bits/runpython \
|
||||||
$(while read name newname; do echo "$name"; done <sources.list)
|
$(while read name newname; do echo "$name"; done <sources.list)
|
||||||
|
|
||||||
rm -rf "$1.app"
|
rm -rf "$2.app"
|
||||||
mkdir "$1.app" "$1.app/Contents"
|
mkdir "$2.app" "$2.app/Contents"
|
||||||
cd "$1.app/Contents"
|
cd "$2.app/Contents"
|
||||||
|
|
||||||
cp "$TOP/Info.plist" .
|
cp "$TOP/Info.plist" .
|
||||||
|
|
||||||
@ -18,11 +18,11 @@ cd "$TOP"
|
|||||||
while read name newname; do
|
while read name newname; do
|
||||||
[ -z "$name" ] && continue
|
[ -z "$name" ] && continue
|
||||||
: "${newname:=$name}"
|
: "${newname:=$name}"
|
||||||
outname=$1.app/Contents/Resources/$newname
|
outname=$2.app/Contents/Resources/$newname
|
||||||
outdir=$(dirname "$outname")
|
outdir=$(dirname "$outname")
|
||||||
[ -d "$outdir" ] || mkdir "$outdir"
|
[ -d "$outdir" ] || mkdir "$outdir"
|
||||||
cp "${name-$newname}" "$outname"
|
cp "${name-$newname}" "$outname"
|
||||||
done <sources.list
|
done <sources.list
|
||||||
|
|
||||||
cd "$1.app"
|
cd "$2.app"
|
||||||
redo-ifchange $(find . -type f)
|
redo-ifchange $(find . -type f)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
exec >&2
|
exec >&2
|
||||||
IFS="
|
IFS="
|
||||||
"
|
"
|
||||||
redo-ifchange $1.app
|
redo-ifchange $2.app
|
||||||
tar -czf $3 $1.app/
|
tar -czf $3 $2.app/
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
exec >&2
|
exec >&2
|
||||||
IFS="
|
IFS="
|
||||||
"
|
"
|
||||||
redo-ifchange $1.app
|
redo-ifchange $2.app
|
||||||
zip -q -r $3 $1.app/
|
zip -q -r $3 $2.app/
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
redo-ifchange $1.xib
|
redo-ifchange $2.xib
|
||||||
ibtool --compile $3 $1.xib
|
ibtool --compile $3 $2.xib
|
||||||
|
Loading…
Reference in New Issue
Block a user