From a129ef7bac07b27c9c0e165dcdf16a0a522811dd Mon Sep 17 00:00:00 2001 From: gered Date: Fri, 19 Jul 2024 18:22:29 -0400 Subject: [PATCH] add pull/push ftp and batch scripts for transferring files to/from a file server for the purposes of managing git vcs on the project these are extensions of previous versions of these scripts that were used previously but never committed here --- PULL.BAT | 12 ++++++++++++ PULL.FTP | 28 ++++++++++++++++++++++++++++ PUSH.BAT | 14 ++++++++++++++ PUSH.FTP | 39 +++++++++++++++++++++++++++++++++++++++ 4 files changed, 93 insertions(+) create mode 100755 PULL.BAT create mode 100755 PULL.FTP create mode 100755 PUSH.BAT create mode 100755 PUSH.FTP diff --git a/PULL.BAT b/PULL.BAT new file mode 100755 index 0000000..330ff49 --- /dev/null +++ b/PULL.BAT @@ -0,0 +1,12 @@ +deltree /y test +deltree /y examples +deltree /y src + +del *.md + +mkdir test +mkdir examples +mkdir src + +ftp 10.0.0.20 < pull.ftp + diff --git a/PULL.FTP b/PULL.FTP new file mode 100755 index 0000000..28cb58f --- /dev/null +++ b/PULL.FTP @@ -0,0 +1,28 @@ +ftp +ftp + +binary +prompt + +cd Projects/libdgl + +mget *.* + +cd SRC +lcd SRC +mget *.* +cd .. +lcd .. + +cd TEST +lcd TEST +mget *.* +cd .. +lcd .. + +cd EXAMPLES +lcd EXAMPLES +mget *.* +cd .. +lcd .. + diff --git a/PUSH.BAT b/PUSH.BAT new file mode 100755 index 0000000..c81f466 --- /dev/null +++ b/PUSH.BAT @@ -0,0 +1,14 @@ +cd test +wmake clean +cd .. + +cd examples +wmake clean +cd .. + +cd src +wmake clean +cd .. + +ftp 10.0.0.20 < push.ftp + diff --git a/PUSH.FTP b/PUSH.FTP new file mode 100755 index 0000000..ed780bb --- /dev/null +++ b/PUSH.FTP @@ -0,0 +1,39 @@ +ftp +ftp + +binary +prompt + +cd Projects/libdgl + +mdelete * +mput * +mput *.* + +mkdir SRC +cd SRC +lcd SRC +mdelete * +mput * +mput *.* +cd .. +lcd .. + +mkdir TEST +cd TEST +lcd TEST +mdelete * +mput * +mput *.* +cd .. +lcd .. + +mkdir EXAMPLES +cd EXAMPLES +lcd EXAMPLES +mdelete * +mput * +mput *.* +cd .. +lcd .. +