Commit 16bbf23c authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

Rename uppercase occurrences

parent b3e5c0f8
......@@ -82,8 +82,8 @@ By default, the vmod ``configure`` script installs the built vmod in the
directory relevant to the prefix. The vmod installation directory can be
overridden by passing the ``vmoddir`` variable to ``make install``.
USAGE EXAMPLE
=============
USAGE
=====
In your VCL you could then use this vmod along the following lines::
......
......@@ -21,6 +21,7 @@ fi
SYM_NAME=${NAME,,*}
CAP_NAME=${NAME^?}
UPP_NAME=${NAME^^?}
if ! git diff-index --quiet HEAD --; then
echo "ERROR: Need a clean working tree. Run \"git stash\" first."
......@@ -32,9 +33,13 @@ git mv src/vmod_example.vcc src/vmod_${SYM_NAME}.vcc
git grep -z -l example | xargs -0 sed -i -s -e "s/example/${SYM_NAME}/g"
git grep -z -l Example | xargs -0 sed -i -s -e "s/Example/${CAP_NAME}/g"
git grep -z -l EXAMPLE | xargs -0 sed -i -s -e "s/EXAMPLE/${UPP_NAME}/g"
git rm -f rename-vmod-script
# restore foreign files
git checkout m4/*
cat <<EOF
All done.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment