blob: 3c76312d8dcc11579a4218ef34920ffc544ff957 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/usr/bin/env bash
#
# Script to build lists of extra dist files by category.
# Output of this script should go into Makefile.am at the project root.
function print_list()
{
local _DIR=$1
local _NAME=$_DIR"_data"
echo "$_NAME = \\"
local _BASE_CMD="git ls-tree --full-tree --name-only -r HEAD -- $_DIR"
$_BASE_CMD | sed -e 's/\#/\\\#/g' | head -n -1 | sed -e 's/^/\t/g' -e 's/$/\ \\/g'
$_BASE_CMD | sed -e 's/\#/\\\#/g' | tail -n 1 | sed -e 's/^/\t/g'
echo ""
}
PROGDIR=`dirname $0`
cd "../$PROGDIR"
print_list doc
print_list doc_example
print_list bin
print_list misc
print_list slickedit
print_list test
|