chore: refine handout script, update .gitignore accordingly
This commit is contained in:
+4
-1
@@ -54,4 +54,7 @@ dkms.conf
|
||||
|
||||
# MacOS .DS_Store file
|
||||
**/.DS_Store
|
||||
**/._.DS_Store
|
||||
**/._.DS_Store
|
||||
|
||||
# Ignore handout files
|
||||
handout/
|
||||
@@ -4,9 +4,13 @@
|
||||
GE_TXATT=0
|
||||
GE_RXATT=25
|
||||
|
||||
DST_DIR=`pwd`
|
||||
DST_DIR="$(pwd)/handout"
|
||||
PROJECT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||
|
||||
echo ${DST_DIR}
|
||||
|
||||
mkdir -p ${DST_DIR}
|
||||
|
||||
echo "Creating <df_datalink_ge>..."
|
||||
cp -rL $PROJECT_DIR/df_datalink_ge/src $DST_DIR/df_datalink_ge
|
||||
sed -i'' -e "s/antConfig->rfTxMgc = 0;/antConfig->rfTxMgc = $GE_TXATT;/g" $DST_DIR/df_datalink_ge/networking/phy_layer/phy_antenna.c
|
||||
@@ -38,4 +42,4 @@ for key in ${!calMap[*]};do
|
||||
/\};/!b table
|
||||
s/=.*\};/=\n\/\/Antenna-$key\n${calMap[$key]}/
|
||||
}" $DST_DIR/$projName/networking/phy_layer/phy_antenna.c
|
||||
done
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user