diff options
author | Justin Davis <jrcd83@gmail.com> | 2012-05-15 19:03:59 +0200 |
---|---|---|
committer | Justin Davis <jrcd83@gmail.com> | 2012-05-15 19:03:59 +0200 |
commit | 75052c969a1aa4ff481ccdd31c7b092bbc1c3f44 (patch) | |
tree | 15c8993630952dc1af3880d20ad51e3a5823022b /bin | |
parent | 296d7c4ad39fe4b0da0a08f6c16af7387b581fb5 (diff) | |
download | genpkg-75052c969a1aa4ff481ccdd31c7b092bbc1c3f44.tar.gz genpkg-75052c969a1aa4ff481ccdd31c7b092bbc1c3f44.tar.xz |
prepkg should only print to stdout.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/prepkg | 20 |
1 files changed, 2 insertions, 18 deletions
@@ -22,18 +22,6 @@ basicmeta() return 0 } -prependmeta() -{ - if basicmeta | cat - "$1" > "$1.new" - then - mv "$1.new" "$1" - return 0 - else - rm "$1.new" - return 1 - fi -} - case $# in 0) echo "usage: $prog [package name]" 1>&2 exit 1 @@ -52,12 +40,8 @@ do prepret=$? case "$prepret" in - 0) if prependmeta PKGDATA - then - exit 0 - else - err "failed to prepend to PKGDATA" - fi ;; + 0) basicmeta + exit 0 ;; 1) err "$flav encountered an error" ;; 2) ;; # loop *) err "$flav returned error code $metaret" ;; |