-
Notifications
You must be signed in to change notification settings - Fork 2
/
tmp.txt
37 lines (30 loc) · 866 Bytes
/
tmp.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
configure
head :
echo Detection system platform is
if [ "$(uname)" == "Darwin" ];then
echo MacOS
cp src/plink_mac ./bin/plink
which "zcat" >/dev/null 2>&1
if [ $? -eq 0 ];
then
echo check zcat done
else
echo can not find [zcat],we used the [gzcat] replace
sed 's/ zcat/ gzcat/g' src/FileDeal.h > src/FileDeal.h.tmp
mv src/FileDeal.h.tmp src/FileDeal.h
fi
# Mac OS
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ];then
echo Linux
# GNU/Linux
elif [ "$(expr substr $(uname -s) 1 10)" == "MINGW32_NT" ];then
echo windows sys no run this
# Windows NT
fi
chmod 755 bin/*
chmod 755 bin/*
tail :
sed -i 's#\$(AUTOCONF)#\$(AUTOCONF) \&\& echo chmod 755 bin/\\\* \>\> \$(top_srcdir)/configure #' Makefile
chmod 755 bin/*
Makefile :
$(am__cd) $(srcdir) && $(AUTOCONF) && echo chmod 755 bin/\* >> $(top_srcdir)/configure