Skip to content

Instantly share code, notes, and snippets.

@mertsimsek
Last active August 29, 2015 14:17
Show Gist options
  • Save mertsimsek/3a604d3245e48bc971c0 to your computer and use it in GitHub Desktop.
Save mertsimsek/3a604d3245e48bc971c0 to your computer and use it in GitHub Desktop.
Besiege Auto Readme Generator
git pull origin master
rm README.md
touch README.md
echo "# PREVIEWS OF VEHICLES" >> README.md
echo "## In the list below, you can see previews of vehicles that seen here." >> README.md
echo "---" >> README.md
for ext in png; do
files=( "Thumbnails/"*."$ext" )
COUNT=${#files[@]}
# now we can loop over all the files having the current extension
for f in "${files[@]}"; do
echo "![$f] (https://raw.githubusercontent.com/mertsimsek/besiege/master/$f)" >> README.md
done
done
echo "---" >> README.md
echo "---" >> README.md
echo "## Contact" >> README.md
echo "---" >> README.md
echo "You can contact with me from Twitter for any purpose." >> README.md
echo "[Mert Şimşek](http://twitter.com/orhunmertsimsek)" >> README.md
git add .
git commit -m "AUTOBUILD : Readme Updated"
git push origin HEAD:master AUTO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment