You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1011 B
37 lines
1011 B
#!/bin/bash
|
|
#Copyright (c) Hisilicon Technologies Co., Ltd. 2013-2020. All rights reserved.
|
|
#Description: memc
|
|
#Author: sdk
|
|
#Create: 2013-11-15
|
|
|
|
set -e
|
|
##########################################################
|
|
serverdate=$(date +%Y-%m-%d)
|
|
servertime=$(date +%H:%M:%S)
|
|
echo "---------------------------"
|
|
echo $serverdate
|
|
echo $servertime
|
|
echo "---------------------------"
|
|
|
|
##########################################################
|
|
|
|
find . -name "*.c" -exec sed -i 's/\r//' {} \;
|
|
find . -name "*.c" | xargs sed -i 's/\t/ /g'
|
|
find . -name "*.c" -exec sed -i 's/ *$//g' {} \;
|
|
|
|
find . -name "*.h" -exec sed -i 's/\r//' {} \;
|
|
find . -name "*.h" | xargs sed -i 's/\t/ /g'
|
|
find . -name "*.h" -exec sed -i 's/ *$//g' {} \;
|
|
##########################################################
|
|
|
|
find ./ -name "Makefile" |xargs chmod 644
|
|
find ./ -name "*.c" |xargs chmod 644
|
|
find ./ -name "*.h" |xargs chmod 644
|
|
|
|
pwd
|
|
|
|
##########################################################
|
|
|
|
echo "==============$0 finish=============="
|
|
|