From 2b892f12bc7414e5790d5117be452a7f8023ac42 Mon Sep 17 00:00:00 2001 From: Peter Green Date: Sat, 7 Jan 2023 19:56:14 +0000 Subject: [PATCH] Upload first lot of files Upload first lot of files. --- LICENSE | 2 +- Make_Project_Dirs.desktop | 8 +++ Make_Project_Dirs.sh | 64 ++++++++++++++++++++++ icon.svg | 111 ++++++++++++++++++++++++++++++++++++++ install.sh | 35 ++++++++++++ 5 files changed, 219 insertions(+), 1 deletion(-) create mode 100644 Make_Project_Dirs.desktop create mode 100644 Make_Project_Dirs.sh create mode 100644 icon.svg create mode 100644 install.sh diff --git a/LICENSE b/LICENSE index 2071b23..c877db6 100644 --- a/LICENSE +++ b/LICENSE @@ -6,4 +6,4 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/Make_Project_Dirs.desktop b/Make_Project_Dirs.desktop new file mode 100644 index 0000000..46317d0 --- /dev/null +++ b/Make_Project_Dirs.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=Make Project Dirs +Exec= +Comment=Script for making project workflow easier! +Terminal=true +Icon= +Type=Application +Categories=Development; \ No newline at end of file diff --git a/Make_Project_Dirs.sh b/Make_Project_Dirs.sh new file mode 100644 index 0000000..fd56ff0 --- /dev/null +++ b/Make_Project_Dirs.sh @@ -0,0 +1,64 @@ +#!/bin/bash +# Script to create directory structures for multimedia projects. +# By Peter Green +# Website - https://greenpete.co.uk/ +# Version - 2.4 +# Dates - Started developing - 16-09-2018 | Last modified - 02-01-2023 +# Licence - MIT + +cd ~/Desktop || exit + echo " + + + + + ################################# + # # + # NEW MULTIMEDIA PROJECT! :-) # + # # + ################################# + + This script will create your new directory structure on your Desktop. + It will include an Inkscape and Scribus template too. + + + What would you like to call your new project?" +read -r project_name + mkdir "$project_name" +cd "$project_name" || exit + mkdir -p SRC/Audacity SRC/Ardour SRC/Blender SRC/Inkscape SRC/GIMP SRC/Scribus Export SRC/Kdenlive SRC/SH3D SRC/Krita Assets/Inspiration Assets/Img Assets/Audio Assets/Rushes Assets/Docs + +#Copy template files into relevant dirs... +cd ~/bin/Make_Project_Dirs/Assets || exit + + cp scribus.sla ~/Desktop/"$project_name"/SRC/Scribus + cp inkscape.svg ~/Desktop/"$project_name"/SRC/Inkscape + cp kdenlive.kdenlive ~/Desktop/"$project_name"/SRC/Kdenlive + +#Rename them to match the project name... +mv ~/Desktop/"$project_name"/SRC/Scribus/scribus.sla ~/Desktop/"$project_name"/SRC/Scribus/"$project_name".sla +mv ~/Desktop/"$project_name"/SRC/Inkscape/inkscape.svg ~/Desktop/"$project_name"/SRC/Inkscape/"$project_name".svg +mv ~/Desktop/"$project_name"/SRC/Kdenlive/kdenlive.kdenlive ~/Desktop/"$project_name"/SRC/Kdenlive/"$project_name".kdenlive + +clear + +echo " + + + + + + Your project folder, '$project_name' has been created. + + You will find it on your Desktop! + + ############################################# + # # + # Please press enter to close this window. # + # # + #############################################" + +# Now lets empty the variable to clear space in RAM. +# Not sure if that's needed but it seem like a polite thing to do! +unset "$project_name" +read -r diff --git a/icon.svg b/icon.svg new file mode 100644 index 0000000..9c730c2 --- /dev/null +++ b/icon.svg @@ -0,0 +1,111 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..0215218 --- /dev/null +++ b/install.sh @@ -0,0 +1,35 @@ +#!/bin/bash + +# Figure out where the root folder of this script is on the users computer... +current_dir=$(pwd) + +# Checking to see ig there is a 'bin' directory in the users home directory and if not, we will create it. +echo "Looking to see if you have the ~/bin directory" +if [ -d "$HOME"/bin ]; + then echo "$HOME/bin exists, nothing to do..." + else echo "Nope! So we will create it now! " && mkdir "$HOME"/bin +fi + +# Finally copy the project directory over to the final place - /home/user/bin/... +echo "Copying files..." +cp -r "$current_dir" "$HOME"/bin +echo "Done!" + +# Edit the desktop shortcut... +sed -i "s|Exec=|Exec=$HOME/bin/Make_Project_Dirs/Make_Project_Dirs.sh|" "$HOME"/bin/Make_Project_Dirs/Make_Project_Dirs.desktop +sed -i "s|Icon=|Icon=$HOME/bin/Make_Project_Dirs/icon.svg|" "$HOME"/bin/Make_Project_Dirs/Make_Project_Dirs.desktop +# Copy menu file... +echo "Installing shortcut..." +mv "$HOME"/bin/Make_Project_Dirs/Make_Project_Dirs.desktop "$HOME"/.local/share/applications +echo "Done!" + +# Clean up... +echo "Cleaning up..." +rm "$HOME"/bin/Make_Project_Dirs/install.sh +# rm -rf "$HOME"/bin/Make_Project_Dirs/.idea # Remove if not needed. +echo "Done!" + +# Let the user know we're done! +echo " + All done! Press 'Enter' to close this window" +read -r