Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #THe Main code that we want to archive
- code_to_include=( "code" "examples" ) #Put array names in here
- directories_to_include=( "post_patch" "rootfs" "tazpup-core-files" )
- output_name="min-taz(all).tar.gz"
- code=( "mk-min-taz-functions.sh" "trap_stack.sh" "trap_stack_test.sh" \
- "bind_functions.sh" "install-min-pkgs.sh" "adjacent_mount_rootfs.sh" \
- "mount_rootfs+bash" "mount_rootfs" )
- #We might want to archive this code for example/reference purposes
- examples=( "ref/make-tazpup_functions.sh" "ref/make-tazpup.sh" "ref/trim_puppy.sh" )
- echo_items(){
- #arry_names_name=${1:-ALL_ArrNames}
- #for arr_name in $(eval 'echo "${'$arry_names_name'[@]}"'); do
- for item in "${code_to_include}" "${directories_to_include}"; do
- if [ -d "$item" ]; then
- find . -wholename "./$item"'/*'
- else
- echo "./$item"
- fi
- done
- }
- echo_items | tar -czvf "$output_name" --files-from -
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement