-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathbackupToPythonGitHubFolder.sh
More file actions
executable file
·39 lines (31 loc) · 987 Bytes
/
backupToPythonGitHubFolder.sh
File metadata and controls
executable file
·39 lines (31 loc) · 987 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
#!/bin/bash
# Created by Sujay Davalgi
#
# Backup all the sharable scripts into GitHub folder
#
# Usage: ./backupToPythonGitHubFolder.sh
. ./library/mainFunctions.sh
. ./library/textFormatting.sh
. ./library/machineFileOperations.sh
backupFiles(){
echo -e -n " Source: ${1}\n"
echo -e -n " Destination: ${2}\n"
if [ ! -d "$destFolder" ]; then
`mkdir -p ${2}`
fi
compareAndCopyMachineFiles "${1}" "${2}" "*.*"
}
gitHubFolder=`echo ~/Setup/GitHub`
gitHubFolder_python="${gitHubFolder}/android-python-scripts"
echo -e -n ">> Checking Library Files ...\n"
sourceFolder=`echo "${myPythonScripts}/library"`
destFolder=`echo "${gitHubFolder_python}/library"`
backupFiles "${sourceFolder}" "${destFolder}"
echo -e -n ">> Done checking Library Files\n"
echo
echo -e -n ">> Checking Script Files ...\n"
sourceFolder=`echo "${myPythonScripts}"`
destFolder=`echo "${gitHubFolder_python}"`
backupFiles "${sourceFolder}" "${destFolder}"
echo -e -n ">> Done checking Script Files\n"
echo