summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-01-21 13:00:19 (EST)
committer P. J. McDermott <pjm@nac.net>2012-01-21 13:00:19 (EST)
commitc2a1ec410438283a86f936b346cccb24f53b0fc2 (patch)
tree6c7e5f047d6c80afb29d1f7d285f56d3b33009fe /src
parent539388e9107c258a7f567549bd6ade51640377d0 (diff)
Fix syntax errors in grouping commands.
Diffstat (limited to 'src')
-rw-r--r--src/oh-gencontrol36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/oh-gencontrol b/src/oh-gencontrol
index f7f3684..9636ee0 100644
--- a/src/oh-gencontrol
+++ b/src/oh-gencontrol
@@ -78,13 +78,13 @@ if ${is_src}; then
printf 'Package: %s' "${srcpkg}-src" > ${control}
printf 'Source: %s' "${srcpkg}" >> ${control}
- {printf 'Version: ' && oh_get_field Version} >> ${control}
+ { printf 'Version: ' && oh_get_field Version;} >> ${control}
[ ${?} -eq 1 ] && missing_field Version
printf 'Architecture: all' >> ${control}
# TODO: Calculate "Installed-Size".
- {printf 'Maintainer: ' && oh_get_field Maintainer} >> ${control}
+ { printf 'Maintainer: ' && oh_get_field Maintainer;} >> ${control}
[ ${?} -eq 1 ] && missing_field Maintainer
- {printf 'Homepage: ' && oh_get_field Homepage} >> ${control}
+ { printf 'Homepage: ' && oh_get_field Homepage;} >> ${control}
else
if [ ${#} -ne 1 ]; then
print_usage "${0}" >&2
@@ -100,34 +100,34 @@ else
mkdir "${control_dir}"
# Binary and source package names and version.
- {printf 'Package: ' && oh_get_field ${binpkg} Package} > ${control}
+ { printf 'Package: ' && oh_get_field ${binpkg} Package;} > ${control}
[ ${?} -eq 1 ] && missing_field Package
- {printf 'Source: ' && oh_get_field Source} >> ${control}
+ { printf 'Source: ' && oh_get_field Source;} >> ${control}
[ ${?} -eq 1 ] && missing_field Source
- {printf 'Version: ' && oh_get_field Version} >> ${control}
+ { printf 'Version: ' && oh_get_field Version;} >> ${control}
[ ${?} -eq 1 ] && missing_field Version
# TODO: Handle architecture.
- {printf 'Architecture: ' && oh_get_field ${binpkg} Architecture} \
+ { printf 'Architecture: ' && oh_get_field ${binpkg} Architecture;} \
>> ${control}
[ ${?} -eq 1 ] && missing_field Architecture
# Optional fields.
- {printf 'Essential: ' && oh_get_field ${binpkg} Essential} >> ${control}
- {printf 'Depends: ' && oh_get_field ${binpkg} Depends} >> ${control}
- {printf 'Recommends: ' && oh_get_field ${binpkg} Recommends} >> ${control}
- {printf 'Suggests: ' && oh_get_field ${binpkg} Suggests} >> ${control}
- {printf 'Pre-Depends: ' && oh_get_field ${binpkg} Pre-Depends} >> ${control}
- {printf 'Conflicts: ' && oh_get_field ${binpkg} Conflictss} >> ${control}
- {printf 'Provides: ' && oh_get_field ${binpkg} Provides} >> ${control}
- {printf 'Replaces: ' && oh_get_field ${binpkg} Replaces} >> ${control}
+ { printf 'Essential: ' && oh_get_field ${binpkg} Essential;} >> ${control}
+ { printf 'Depends: ' && oh_get_field ${binpkg} Depends;} >> ${control}
+ { printf 'Recommends: ' && oh_get_field ${binpkg} Recommends;} >> ${control}
+ { printf 'Suggests: ' && oh_get_field ${binpkg} Suggests;} >> ${control}
+ { printf 'Pre-Depends: ' && oh_get_field ${binpkg} Pre-Depends;} >> ${control}
+ { printf 'Conflicts: ' && oh_get_field ${binpkg} Conflicts;} >> ${control}
+ { printf 'Provides: ' && oh_get_field ${binpkg} Provides;} >> ${control}
+ { printf 'Replaces: ' && oh_get_field ${binpkg} Replaces;} >> ${control}
# TODO: Calculate "Installed-Size".
- {printf 'Maintainer: ' && oh_get_field Maintainer} >> ${control}
+ { printf 'Maintainer: ' && oh_get_field Maintainer;} >> ${control}
[ ${?} -eq 1 ] && missing_field Maintainer
- {printf 'Description: ' && oh_get_field ${binpkg} Description} >> ${control}
+ { printf 'Description: ' && oh_get_field ${binpkg} Description;} >> ${control}
[ ${?} -eq 1 ] && missing_field Description
- {printf 'Homepage: ' && oh_get_field Homepage} >> ${control}
+ { printf 'Homepage: ' && oh_get_field Homepage;} >> ${control}
for script in preinst postinst prerm postrm; do
if [ -f ../${binpkg}.pkg/${script} ]; then