-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·72 lines (47 loc) · 1.2 KB
/
Copy pathrun.sh
File metadata and controls
executable file
·72 lines (47 loc) · 1.2 KB
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
#!/bin/bash
# Convert all the files in various folders to pdf
#try and catch block for Catche error when more than 100 pages are concatanated
#option for one folder to convert
bashfilename='run'
chmod +x $bashfilename.sh
loc=$(pwd)
next=1
mkdir -p CompiledPdfOutput
clear
chmod +x functions/make_executable.sh
. "./functions/make_executable.sh"
execute_functions
. "./functions/error_handling.sh"
. "./functions/choose_mode.sh"
. "./functions/choose_extention.sh"
. "./functions/mode_one.sh"
. "./functions/mode_two.sh"
. "./functions/break.sh"
. "./functions/conversion.sh"
. "./functions/output.sh"
. "./functions/file_checker.sh"
. "./functions/break_conversion.sh"
. "./functions/break_conversion_convert.sh"
break_line
echo "+----------------------Arsalan's pdf converter-----------------------+"
break_line
choose_mode
break_line
choose_extention
break_line
output_name
#=========================================
if [ $convchoice == '1' ]
then
mode_one
else
mode_two
fi
echo " --Transferred the pdf to $loc/CompiledPdfOutput/-- "
break_line
echo " -------------------Tasks executed successfully!!!------------------- "
break_line
handle_error_exit
# temp
# mixed
# check pdftk and image magick