diff options
author | Justin Davis <jrcd83@gmail.com> | 2012-01-17 17:07:57 +0100 |
---|---|---|
committer | Justin Davis <jrcd83@gmail.com> | 2012-01-17 17:07:57 +0100 |
commit | df7d6667e5c016faacde7fb78d232016d5f39339 (patch) | |
tree | 7f9324e04a9934dfd91af77b1e79cac8a112ce45 /bin/tweakmeta | |
parent | 2cc568ce2ec38979dde494cd1afd73eeb3673a77 (diff) | |
download | genpkg-df7d6667e5c016faacde7fb78d232016d5f39339.tar.gz genpkg-df7d6667e5c016faacde7fb78d232016d5f39339.tar.xz |
Rename makepkgmeta to mkpkgdata.
Use files named PKGDATA instead of files named PKGMETA.
Diffstat (limited to 'bin/tweakmeta')
-rwxr-xr-x | bin/tweakmeta | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/bin/tweakmeta b/bin/tweakmeta index d38f316..75198a2 100755 --- a/bin/tweakmeta +++ b/bin/tweakmeta @@ -2,24 +2,24 @@ ## # tweakmeta # -# First read a PKGMETA file in the current directory, loading its values. +# First read a PKGDATA file in the current directory, loading its values. # Next read a PKGTWEAK file from standard input. -# The PKGTWEAK file tells us how to modify the PKGMETA data. -# The modified PKGMETA is printed to standard output. +# The PKGTWEAK file tells us how to modify the PKGDATA data. +# The modified PKGDATA is printed to standard output. # # Justin Davis <jrcd83@gmail.com> BEGIN { PROG = "tweakmeta" - if (system("test -r PKGMETA") != 0) { - print PROG ": PKGMETA file could not be read." | "cat 1>&2" + if (system("test -r PKGDATA") != 0) { + print PROG ": PKGDATA file could not be read." | "cat 1>&2" exit(errcode = 2) } FS = "\n"; RS = "" - while (getline<"PKGMETA" > 0) + while (getline<"PKGDATA" > 0) for (i = 2; i <= NF; i++) pushval($1, $i) - close("PKGMETA") + close("PKGDATA") FS = " "; RS = "\n" } |