diff --git a/update-content.sh b/update-content.sh deleted file mode 100755 index bc3f145b..00000000 --- a/update-content.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/bash - -# for d in content/* ; do -# cd "$d" -# pwd -# git pull -# cd ../.. -# done - -# for d in content/* ; do -# cd "$d" -# pwd -# git pull -# cd ../.. -# done - -while IFS= read -r line; do - echo "Text read from file: $line" - IN="$line" - arrIN=(${IN//:/ }) - repo=${arrIN[0]} - version=${arrIN[2]} - echo "repo: $repo" - echo "version: $version" - rm -rf "content/_$repo" - git clone -n "https://github.com/$repo" "content/_$repo" - cd "content/_$repo" - git ls-tree -r "$version" --full-tree --name-only | grep "\.md" > files.tmp - while IFS= read -r line; do - git checkout "$version" "$line" - done < files.tmp - rm files.tmp - rm -rf .git - cd - -done < repositories.txt - -./generate-repo-data.sh \ No newline at end of file diff --git a/update-single.sh b/update-single.sh deleted file mode 100755 index 3639f181..00000000 --- a/update-single.sh +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/bash - -update="$1" - -[ "$update" ] || echo "Give repo as \"org/repo\"" -[ "$update" ] || exit 1 - -echo "Updating "$update -#echo "SHIT" - -#exit() - -while IFS= read -r line; do - # - IN="$line" - arrIN=(${IN//:/ }) - repo=${arrIN[0]} - version=${arrIN[2]} - # - if [ "$repo" == "$update" ]; then - echo "Text read from file: $line" - echo "repo: $repo" - echo "version: $version" - rm -rf "content/_$repo" - git clone -n "https://github.com/$repo" "content/_$repo" - cd "content/_$repo" - git ls-tree -r "$version" --full-tree --name-only | grep "\.md" > files.tmp - while IFS= read -r line; do - git checkout "$version" "$line" - done < files.tmp - rm files.tmp - rm -rf .git - cd - - # else - # echo "Skipping $repo" - fi -done < repositories.txt - -./generate-repo-data.sh \ No newline at end of file