aboutsummaryrefslogtreecommitdiff
path: root/bin/generate-dependencies
blob: 937412e7d4a7557d1e2723735515dd45eaa6346e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash
{
	path="${2%/*}"
	echo -n "$1: $2 "
	deps=`grep import "$2" | grep -Po "['\"]\./.*?['\"]" | sed 's/.\(.*\)./\1/'`
	for dep in $deps; do
		echo -n "$path/$dep.js "
	done
	echo -n '

'
} > "$3"