mirror of
https://github.com/remoteintech/remote-jobs
synced 2024-12-29 05:43:09 +00:00
7c08aef114
* Fix minor issues in readme table * Parse and validate readme table * Add missing links from readme to company profiles * Fix the last issue with a company's name in its profile * Add script to rename a company profile * Fix example company name to match its profile filename * Rename company profiles to match filename convention Run this to generate the rename commands: bin/validate.js | grep 'Expected filename' | sed 's#^#bin/rename.sh company-profiles/#; s#: Expected filename "# company-profiles/#; s#" for company .*$##' | tee renames.txt Inspect the output, then run this to do the renames: sh < renames.txt * Add Travis CI configuration
18 lines
362 B
Bash
Executable file
18 lines
362 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# Only use this script if ALL validation checks are already passing!
|
|
|
|
old_name="$1"
|
|
new_name="$2"
|
|
|
|
cd "$(dirname "$0")"
|
|
cd ..
|
|
|
|
if [ ! -f "$old_name" ] || [ -f "$new_name" ]; then
|
|
echo "Usage: $0 company-profiles/old-filename.md company-profiles/new-filename.md"
|
|
exit 1
|
|
fi
|
|
|
|
git mv "$old_name" "$new_name"
|
|
|
|
sed -i "s#/$old_name#/$new_name#" README.md
|