From 771760f82802a2ab6ed35669e831a27bd587e7af Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Wed, 1 Jul 2020 10:17:27 -0700 Subject: [PATCH] Update archive creation to make deploying changes easier --- archive-docset.sh | 14 +++++++------- resources/Archive_Readme.md | 2 +- resources/cloud-icon.png | Bin 4315 -> 1314 bytes 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/archive-docset.sh b/archive-docset.sh index 13f2a50..699b27d 100755 --- a/archive-docset.sh +++ b/archive-docset.sh @@ -10,7 +10,7 @@ deliverable=$1 function get_friendly_name { local deliverable=$1 - local name="$(tr '[:lower:]' '[:upper:]' <<< ${deliverable:0:1})${deliverable:1}" + local name="$(tr '[:lower:]' '[:upper:]' <<< "${deliverable:0:1}")${deliverable:1}" case "$deliverable" in "apexcode") name="Apex" @@ -34,23 +34,23 @@ function get_icon_name { } function main { - local name=$(get_friendly_name $deliverable) + local name=$(get_friendly_name "$deliverable") local package="$out_dir/Salesforce $name.docset" local archive_dir="$archive_dir/Salesforce_$name" local archive="$archive_dir/Salesforce_$name.tgz" - local icon=$(get_icon_name $deliverable) - mkdir -p $archive_dir + local icon=$(get_icon_name "$deliverable") + mkdir -p "$archive_dir" # Generate docset.json - version=$(cat $build_dir/$deliverable-version.txt) - cat $files_dir/docset-$deliverable.json | sed s/VERSION/$version/ > $archive_dir/docset.json + version=$(cat "$build_dir/$deliverable-version.txt") + sed "s/VERSION/$version/" "$files_dir/docset-$deliverable.json" > "$archive_dir/docset.json" # Generated tgz archive tar --exclude=".DS_Store" -czf "$archive" "$package" # Copy icons cp "$files_dir/$icon.png" "$archive_dir/icon.png" cp "$files_dir/$icon@2x.png" "$archive_dir/icon@2x.png" # Copy readme - cp "$files_dir/Archive_Readme.md" "$archive_dir/README.md" + sed "s/DOCSET_NAME/$name/" "$files_dir/Archive_Readme.md" > "$archive_dir/README.md" echo "Finished archive $archive" } diff --git a/resources/Archive_Readme.md b/resources/Archive_Readme.md index e485aea..1cde62e 100644 --- a/resources/Archive_Readme.md +++ b/resources/Archive_Readme.md @@ -1,4 +1,4 @@ -Salesforce Apex +Salesforce DOCSET_NAME =============== Created by [ViViDboarder](https://github.com/ViViDboarder) diff --git a/resources/cloud-icon.png b/resources/cloud-icon.png index 06765aa8d1b1acfef8d76de12ea014eb05015ba6..02323a7a11b7025c90d0b3d917ef0cfe22c6f951 100644 GIT binary patch delta 950 zcmcbuxQMI1Gr-TCmrII^fq{Y7)59eQNDF{42OE%-|NK7@NU@|l`Z_W&Z0zU$lgJ9> zDp>|@`~J@{C7EZs=@_soWW z_4-V=YGi!QNSyqV{?Kf`qfw8cTXekcb?MjNQj8b&7p{Dt&&KrLg8x0|)}MtNGCfuQ zzP4Ju`oRlx*(<^k{$_{V^kg=EOrF2{&h|}yrnkQc*_H;)&fof^w#0Zt((R{O6U@E{ zY`tW(YSHdnjjoaI@3jIJx4N%olAjWCHd1pFWBv2`dxjNzO{PA$apBBV&q>BQUV^Gi zgl{PbeK8dcI_0Q;R{Z9bsHVAp1jJ8$UK5exAb2@o^|5t7cW1Q)T^6hO#J#GC$&2NL z)XtEkhkRi-Pu}%cT=(rMlfAGXmrY8kp^)FMq=z?Ftx9xE{{F5$e&cer{R%7RY3Mto z2h7ERa&3oOmZk>saXY22)S(u)re;rytJ|DVA;5YPMltrg`K= zi^JyNjAKh&JyUnoRhaXML?%A$u#)%6_&4L!;g8TuhR4nG+^wS{+&wc&labUmZV~wfv+Z%Qk&6BRY9{Ja>mU|zA zaJBj}|KlP>&$QFu>xHW5NUv>(WU%}t#ph_B{rFx_*$(+7TNAq0@4dU?#*WipmNC9! zZ!V8vcC7rLQ1JTC2Os}s`mJ8Rs^oP5fTGIBxQsGQllr$h(949BNgco5JbUABi$(_9b=RN zA~9N!@bUfde0Z+wz0P&c@7&+-FQi11v5ztQKGEk<&aJA|5MqFVLswJXG>~}LD#+J#9nwx1$)2x%4P(?nbkRq!TNH=u z+$S!qYG8pdjdQyQVz8w%iQGx)CUUh{^59w#5?3`SD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