• Oliver Smith's avatar
    newapkbuild: fix empty function regression · 635a6993
    Oliver Smith authored
    Since the obsolete 'cd "$builddir"' statements have been removed in [1],
    build(), check() and package() can generate empty functions if no build
    system is specified or if there is no default for the given build
    system. newapkbuild will then fail, as it tries to parse the script it
    generated:
    
    $ cd /home/pmos && newapkbuild test
    /usr/bin/abuild: /home/pmos/test/APKBUILD: line 18: syntax error: unexpected "}"
    $ cat test/APKBUILD
    ...
    build() {
    }
    ...
    
    Fix this by placing ":" in functions that would be empty.
    
    [1]: f83d19ce
    635a6993
Name
Last commit
Last update
.devbuildrc Loading commit data...
.editorconfig Loading commit data...
.gitignore Loading commit data...
APKBUILD.5 Loading commit data...
Makefile Loading commit data...
abuild-fetch.c Loading commit data...
abuild-gzsplit.c Loading commit data...
abuild-keygen.in Loading commit data...
abuild-rmtemp.c Loading commit data...
abuild-sign.in Loading commit data...
abuild-sudo.c Loading commit data...
abuild-tar.c Loading commit data...
abuild.conf Loading commit data...
abuild.in Loading commit data...
abump.in Loading commit data...
apkbuild-cpan.in Loading commit data...
apkbuild-gem-resolver.in Loading commit data...
apkbuild-pypi.in Loading commit data...
apkgrel.in Loading commit data...
bootchartd Loading commit data...
buildlab.in Loading commit data...
checkapk.in Loading commit data...
config.guess Loading commit data...
config.sub Loading commit data...
functions.sh.in Loading commit data...
newapkbuild.1 Loading commit data...
newapkbuild.in Loading commit data...
sample.APKBUILD Loading commit data...
sample.confd Loading commit data...
sample.initd Loading commit data...
sample.post-install Loading commit data...
sample.pre-install Loading commit data...