It's been awhile since I've needed to use Git at the command line so I can't 
tell you the exact syntax to use but, once you have Git installed, you can run 
the command from within your project's root directory and it will upload 
everything on its own, maintaining the same folder and file structure you have 
in the root folder. Personally, I use the excellent GitKraken front-end, which 
makes this even easier.




Sent with Proton Mail secure email.

------- Original Message -------
On Saturday, July 2nd, 2022 at 5:09 PM, Bob Smith <[email protected]> 
wrote:


> On 7/2/2022 4:05 PM, Jim Hall wrote:
> [...]
>
> > > On Sat, Jul 2, 2022 at 1:07 PM Bob Smith [email protected] wrote:
> > > As it took a long long time to upload these files, I'm hoping you all
> > > know of a quicker way to make mass changes. Perhaps there is a GUI
> > > interface for this. As I'd like to stay out of the maintenance of this
> > > project, I'd be happy to give some of you write access to the repository
> > > in order to accomplish the above changes.
> >
> > My desktop system is Linux, so I can suggest the "Linux way" to do
> > this. You can change any instance of "All rights reserved" to "GNU
> > General Public License version 3" in all files in a directory called
> > "386max" by starting with this 3-line shell script: (save this as
> > changetext.bash)
> >
> > #!/bin/bash
> > cp "$1" /tmp/tempfile
> > sed -e 's/All rights reserved/GNU General Public License version 3/g'
> > /tmp/tempfile > "$1"
> >
> > ..and then you run this command:
> >
> > $ find 386max -type f -name '*.INC' -exec bash changetext.bash {} \;
> >
> > What that does:
> >
> > The "changetext.bash" script is just a quick way to batch up two
> > commands: make a copy of the file (I used quotes so variable expansion
> > would preserve spaces) then use sed to change the text from the copy,
> > and overwrite the original file. (The "#!" line is technically not
> > needed here, because the "find" command calls it with "bash" anyway.)
> >
> > The "find" command starts at the "386max" directory, and for every
> > *.INC file that it finds, it executes the command "bash
> > changetext.bash {}" where "{}" gets replaced by the filename. You will
> > need to re-run this for any plain text file (like TXT or DOC or SRC or
> > ..) that has the string you want to change.
> >
> > After you run each "find" command, you can check what other files have
> > the string with this command:
> >
> > $ find 386max -type f -exec fgrep -q 'All rights reserved' {} \; -print
>
>
> My problem is not with making the changes, it's with uploading the
> changed files. Unfamiliar with Github as I am, the only way I saw to
> upload files is through their "Add file/Upload files" method. This
> limits me to 100 files and some small number of MBs per upload.
>
> This project has 580+ dirs, 4800+ files, and 200+ MB of data.
>
> Trying to upload an entire directory failed many times for one of the
> above reasons, so I had to split the directory into several (sometimes
> many) pieces. I don't care to experience that pain again.
>
> If you know of some trick to speed up the upload process, I'll be glad
> to give you the appropriate permissions to do it.
>
> --
> _______________________________________________________________
> Bob Smith - [email protected]
> http://www.sudleyplace.com - http://www.nars2000.org
>
>
> _______________________________________________
> Freedos-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/freedos-devel


_______________________________________________
Freedos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to