-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest
More file actions
47 lines (42 loc) · 927 Bytes
/
test
File metadata and controls
47 lines (42 loc) · 927 Bytes
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
#! /bin/bash
for file in $(ls *.h)
do
ci $file
done
for file in $(ls *.c)
do
ci $file
done
for file in $(ls *.h,v)
do
co $file
done
for file in $(ls *.c,v)
do
co $file
done
if ( make )
then
echo "____SUCCESS____"
read -n1 -p "do you want to run (y/n)" response
echo
if [ $response = 'y' ]
then
./linklist
# read
else
echo "make fail"
fi
fi
read -n1 -p "Do you want to edit further ? (y/n) " response
if [ $response = 'y' ]
then
for file in $(ls *.h,v)
do
co -l $file
done
for file in $(ls *.c,v)
do
co -l $file
done
fi