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 ...@@ -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 directory relevant to the prefix. The vmod installation directory can be
overridden by passing the ``vmoddir`` variable to ``make install``. 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:: In your VCL you could then use this vmod along the following lines::
......
...@@ -21,6 +21,7 @@ fi ...@@ -21,6 +21,7 @@ fi
SYM_NAME=${NAME,,*} SYM_NAME=${NAME,,*}
CAP_NAME=${NAME^?} CAP_NAME=${NAME^?}
UPP_NAME=${NAME^^?}
if ! git diff-index --quiet HEAD --; then if ! git diff-index --quiet HEAD --; then
echo "ERROR: Need a clean working tree. Run \"git stash\" first." 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 ...@@ -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/${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/${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 git rm -f rename-vmod-script
# restore foreign files
git checkout m4/*
cat <<EOF cat <<EOF
All done. 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