scripts

various script and utils
git clone git://z3bra.org/scripts
Log | Files | Refs

commit 72e574d65d5636dd69efa9896d807409a87dc68e
parent c9f35d0c264261bda96e4a04f5050dc711aeef64
Author: z3bra <willy@mailoo.org>
Date:   Mon Mar 30 23:03:45 +0200

fixed a few non-POSIX things

Diffstat:
prtmk | 8+++++---
prtup | 2+-
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/prtmk b/prtmk @@ -5,7 +5,9 @@ PKGFILE=~/src/ports/Pkgfile PORTDIR=~/usr/ports -EDITOR=${EDITOR:vim} +EDITOR=${EDITOR:-vim} + +daddy="z3bra <willy at mailoo dot org>" echo_color () { tput bold @@ -36,8 +38,8 @@ if test "$version" = "git"; then PKGFILE=${PKGFILE}-git else - sources=${sources//$name/\$name} - sources=${sources/$version/\$version} + sources=$(echo $sources | "s/\$name/$name/") + sources=$(echo $sources | "s/\$version/$version/") fi echo -n "creating port $name .. " diff --git a/prtup b/prtup @@ -79,4 +79,4 @@ main() { fi } -main +main $@