Re: First draft of script and spec files

2020-09-03 Thread Troy Dawson
On Thu, Sep 3, 2020 at 9:28 AM Tom Hughes wrote: > > On 03/09/2020 16:41, Troy Dawson wrote: > > > Any changes and/or improvements that people think should be made? > > Well macros for all that boilerplate in the spec is an > obvious one. > > Also making the script fetch the actual version being

Re: First draft of script and spec files

2020-09-03 Thread Tom Hughes via nodejs
On 03/09/2020 16:41, Troy Dawson wrote: > Any changes and/or improvements that people think should be made? Well macros for all that boilerplate in the spec is an obvious one. Also making the script fetch the actual version being packaged rather than the latest version would be good. Something

First draft of script and spec files

2020-09-03 Thread Troy Dawson
This is my first draft of a script, and corresponding spec file changes. Feedback is welcome. Bundling Script: #!/bin/bash PACKAGE="node-static" VERSION="$(npm view ${PACKAGE} version)" TMP_DIR=$(mktemp -d -t ci-XX) mkdir ${TMP_DIR} pushd ${TMP_DIR} npm pack ${PACKAGE} tar xfz *.tgz