summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Davis <jrcd83@gmail.com>2012-05-15 19:03:59 +0200
committerJustin Davis <jrcd83@gmail.com>2012-05-15 19:03:59 +0200
commit75052c969a1aa4ff481ccdd31c7b092bbc1c3f44 (patch)
tree15c8993630952dc1af3880d20ad51e3a5823022b
parent296d7c4ad39fe4b0da0a08f6c16af7387b581fb5 (diff)
downloadgenpkg-75052c969a1aa4ff481ccdd31c7b092bbc1c3f44.tar.gz
genpkg-75052c969a1aa4ff481ccdd31c7b092bbc1c3f44.tar.xz
prepkg should only print to stdout.
-rwxr-xr-xbin/prepkg20
1 files changed, 2 insertions, 18 deletions
diff --git a/bin/prepkg b/bin/prepkg
index 513f4bb..11df1fa 100755
--- a/bin/prepkg
+++ b/bin/prepkg
@@ -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" ;;