blob: dda0588cda7cd5bc7b8dd0f8d1c7136e499f78c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#! /bin/sh
# Of all the available platform-dependent object file sets defined in the
# working directory's make file of the form 'OBJS_...', list all those that
# could be relevant to the current platform.
keywords=$(uname -a)
sets=""
for k in $keywords
do
sets="$sets\n$(echo "$k" | tr '[:lower:]' '[:upper:]' | xargs -I '%' grep '^OBJS_%[ =]' Makefile)"
done
echo "$sets" | sort | uniq | awk '/\n\n/ { print '\n' }'
|