Skip to content

Commit c4e15e2

Browse files
committed
Better build script compatibility.
1 parent 1fc6482 commit c4e15e2

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

build.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#! /usr/bin/env bash
22

33
# Copyright (C) 2005-2021 Giorgio Maone <https://maone.net>
44
#
@@ -70,6 +70,8 @@ LIB="$SRC/lib"
7070

7171
NSCL="$SRC/nscl"
7272

73+
# install html5_events.pl dependencies if needed
74+
cpan Regexp::List List::MoreUtils
7375
if ./html5_events/html5_events.pl; then
7476
# update full event list as an array in src/lib/DocumentFreezer.js
7577
EVENTS=$(grep '^on[a-z]\+$' html5_events/html5_events_archive.txt | sed "s/^on//;s/.*/'&'/;H;1h;"'$!d;x;s/\n/, /g');
@@ -82,7 +84,7 @@ cp -pR "$SRC" "$BUILD"
8284
# include nscl dependencies
8385
"$NSCL/include.sh" "$BUILD"
8486

85-
cp -p LICENSE COPYING "$BUILD"/
87+
cp -p LICENSE "$BUILD"/
8688

8789
BUILD_CMD="web-ext"
8890
BUILD_OPTS="build --overwrite-dest"

0 commit comments

Comments
 (0)