projects
/
xorg
/
xkeyboard-config
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Add multimedia key definitions to TypeMatrix 2030 USB keyboard.
[xorg/xkeyboard-config]
/
rules
/
merge.sh
1
#!/bin/sh
2
3
INDIR=`dirname $0`
4
DEST=$1
5
shift
6
7
if [ -z "$HDR" ]; then
8
HDR="HDR"
9
fi
10
11
basename=`basename $0`
12
echo "// DO NOT EDIT THIS FILE - IT WAS AUTOGENERATED BY $basename FROM rules/*.part" >$DEST
13
14
for i in $*; do
15
if [ "$i" = "$HDR" ] || [ "$i" = "HDR" ]; then
16
echo >> $DEST;
17
read hdr
18
echo "$hdr" >> $DEST
19
elif test -f $i; then
20
cat $i >> $DEST || exit 1
21
else
22
cat $INDIR/$i >> $DEST || exit 1
23
fi
24
done < $HDR
25