From: Chris Koeritz Date: Sun, 17 Dec 2017 17:27:37 +0000 (+0000) Subject: attempt 4 with realization X-Git-Tag: 2.140.106^2~13^2~6 X-Git-Url: https://feistymeow.org/gitweb/?p=feisty_meow.git;a=commitdiff_plain;h=3cfe3e86415f9c037ab001c21f2e9d9370ec5aaa attempt 4 with realization seems like tar's exclude feature doesn't support arbitrary paths, and only supports single per file patterns, like *.ugh or *ophilus.morp, rather than being for any old cool pattern. this was not apparent until now; has it always been thus? --- diff --git a/scripts/archival/pack_feisty_meow.sh b/scripts/archival/pack_feisty_meow.sh index 6b7bc1bc..2fb4efed 100644 --- a/scripts/archival/pack_feisty_meow.sh +++ b/scripts/archival/pack_feisty_meow.sh @@ -6,6 +6,8 @@ TEMPO_FILE="$(mktemp "$TMP/zz_feistypack.XXXXXX")" # specify where we keep the file until we're ready to move it. # shortcut for the lengthy exclude parameter. +# note that this only works on file patterns apparently, like *.hosed, +# instead of working with general patterns (like */code_guide/*). export XC='--exclude=' parent_dir="$(dirname "$FEISTY_MEOW_APEX")" @@ -13,8 +15,17 @@ base_dir="$(basename "$FEISTY_MEOW_APEX")" pushd $parent_dir -# zip up feisty meow, but exclude the file names we never want to see. -tar -h -czf $TEMPO_FILE $base_dir ${XC}*/*.tar.gz ${XC}*/*.zip ${XC}*/waste/* ${XC}*/logs/* ${XC}*/binaries/* ${XC}*.git* ${XC}*/kona/bin/* ${XC}code_guide +# archive feisty meow current state, but exclude the file names we never want +# to see in the archive. the exclude vcs flag takes care of excluding +# revision control system private dirs. first line of excludes is for the +# code guide files. this should wash out the majority of those fat things. +# next line is to exclude archives that shouldn't be in the output file. +tar -h -cz --exclude-vcs -f $TEMPO_FILE $base_dir \ + ${XC}*8cpp_source.html ${XC}*8h__dep__incl.map ${XC}*8h__dep__incl.md5 ${XC}*8h__dep__incl.png ${XC}*8h.html + ${XC}*.tar.gz ${XC}*.zip \ + +# note: not currently excluded! cannot do these with --exclude= flag! +#${XC}*/waste/* ${XC}*/logs/* ${XC}*/binaries/* ${XC}*/kona/bin/* # now move the newest version into its resting place. this prepares the # feisty_meow package for uploading.