-
Notifications
You must be signed in to change notification settings - Fork 9
/
create-backups
executable file
·117 lines (89 loc) · 2.61 KB
/
create-backups
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
#!/bin/bash
PPSFILESBAK=`find . -name pps-files.cpp.bak`
PPSFILES=`find . -name pps-files.cpp`
if [ -z "$PPSFILESBAK" ]
then
cp $PPSFILES $PPSFILES.bak
else
echo "pps-files.cpp has backup"
fi
CLIENTMAKEBAK=`find ./client -name makefile.bak`
CLIENTMAKE=`find ./client -name makefile`
if [ -z "$CLIENTMAKEBAK" ]
then
cp $CLIENTMAKE $CLIENTMAKE.bak
else
echo "./client/makefile has backup"
fi
REMOVEBAK=`find ./installer/remove -name pps-client-remove.cpp.bak`
REMOVE=`find ./installer/remove -name pps-client-remove.cpp`
if [ -z "$REMOVEBAK" ]
then
cp $REMOVE $REMOVE.bak
else
echo "./installer/remove/pps-client-remove.cpp has backup"
fi
#ITMAKEBAK=`find ./utils/interrupt-timer -name makefile.bak`
#ITMAKE=`find ./utils/interrupt-timer -name makefile`
#if [ -z "$ITMAKEBAK" ]
#then
# cp $ITMAKE $ITMAKE.bak
#else
# echo "./utils/interrupt-timer/makefile has backup"
#fi
#ITMAKEDRIVERBAK=`find ./utils/interrupt-timer/driver -name Makefile.bak`
#ITMAKEDRIVER=`find ./utils/interrupt-timer/driver -name Makefile`
#if [ -z "$ITMAKEDRIVERBAK" ]
#then
# cp $ITMAKEDRIVER $ITMAKEDRIVER.bak
#else
# echo "./utils/interrupt-timer/driver/Makefile has backup"
#fi
PTMAKEBAK=`find ./utils/pps-timer -name makefile.bak`
PTMAKE=`find ./utils/pps-timer -name makefile`
if [ -z "$PTMAKEBAK" ]
then
cp $PTMAKE $PTMAKE.bak
else
echo "./utils/pps-timer/makefile has backup"
fi
PTMAKEDRIVERBAK=`find ./utils/pps-timer/driver -name Makefile.bak`
PTMAKEDRIVER=`find ./utils/pps-timer/driver -name Makefile`
if [ -z "$PTMAKEDRIVERBAK" ]
then
cp $PTMAKEDRIVER $PTMAKEDRIVER.bak
else
echo "./utils/pps-timer/driver/Makefile has backup"
fi
#PGMAKEBAK=`find ./utils/pulse-generator -name makefile.bak`
#PGMAKE=`find ./utils/pulse-generator -name makefile`
#if [ -z "$PGMAKEBAK" ]
#then
# cp $PGMAKE $PGMAKE.bak
#else
# echo "./utils/pulse-generator/makefile has backup"
#fi
#PGMAKEDRIVERBAK=`find ./utils/pulse-generator/driver -name Makefile.bak`
#PGMAKEDRIVER=`find ./utils/pulse-generator/driver -name Makefile`
#if [ -z "$PGMAKEDRIVERBAK" ]
#then
# cp $PGMAKEDRIVER $PGMAKEDRIVER.bak
#else
# echo "./utils/pulse-generator/driver/Makefile has backup"
#fi
NORMPARMSMAKEBAK=`find ./utils/NormalDistribParams -name makefile.bak`
NORMPARMSMAKE=`find ./utils/NormalDistribParams -name makefile`
if [ -z "$NORMPARMSMAKEBAK" ]
then
cp $NORMPARMSMAKE $NORMPARMSMAKE.bak
else
echo "./utils/NormalDistribParams/makefile has backup"
fi
UDPMAKEBAK=`find ./utils/udp-time-client -name makefile.bak`
UDPMAKE=`find ./utils/udp-time-client -name makefile`
if [ -z "$UDPMAKEBAK" ]
then
cp $UDPMAKE $UDPMAKE.bak
else
echo "./utils/udp-time-client/makefile has backup"
fi