diff options
author | marha <marha@users.sourceforge.net> | 2009-07-24 17:45:11 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2009-07-24 17:45:11 +0000 |
commit | ea63f0fae5c393ccf198aad0ae4dbda6d2a4391a (patch) | |
tree | c1156ac1a1074e2f5c34e8798f28a1c0372f1356 /xorg-server/xkbdata.src/rules/merge.sh | |
parent | 61339f6bcfca02be629416f549a634dd34aed98f (diff) | |
download | vcxsrv-ea63f0fae5c393ccf198aad0ae4dbda6d2a4391a.tar.gz vcxsrv-ea63f0fae5c393ccf198aad0ae4dbda6d2a4391a.tar.bz2 vcxsrv-ea63f0fae5c393ccf198aad0ae4dbda6d2a4391a.zip |
Added xkeyboard-config-1.6.tar.gz
Diffstat (limited to 'xorg-server/xkbdata.src/rules/merge.sh')
-rw-r--r-- | xorg-server/xkbdata.src/rules/merge.sh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/xorg-server/xkbdata.src/rules/merge.sh b/xorg-server/xkbdata.src/rules/merge.sh index 8dfde5546..b18af7c3d 100644 --- a/xorg-server/xkbdata.src/rules/merge.sh +++ b/xorg-server/xkbdata.src/rules/merge.sh @@ -1,5 +1,6 @@ -#!/bin/bash +#!/bin/sh +INDIR=`dirname $0` DEST=$1 shift @@ -11,12 +12,14 @@ basename=`basename $0` echo "// DO NOT EDIT THIS FILE - IT WAS AUTOGENERATED BY $basename FROM rules/*.part" >$DEST for i in $*; do - if [ "$i" == "$HDR" ] || [ "$i" == "HDR" ]; then + if [ "$i" = "$HDR" ] || [ "$i" = "HDR" ]; then echo >> $DEST; read hdr echo "$hdr" >> $DEST + elif test -f $i; then + cat $i >> $DEST || exit 1 else - cat $i >> $DEST; + cat $INDIR/$i >> $DEST || exit 1 fi done < $HDR |