Skip to content

Commit

Permalink
Fix white space.
Browse files Browse the repository at this point in the history
  • Loading branch information
dak180 committed Jan 24, 2015
1 parent 4bed279 commit de8208a
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions autorevision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ The following are valid output types:
json = JSON file
lua = Lua file
m4 = m4 file
matlab = matlab file
octave = octave file
matlab = matlab file
octave = octave file
php = PHP file
pl = Perl file
py = Python file
Expand Down Expand Up @@ -130,7 +130,7 @@ gitRepo() {
VCS_UUID="$(git rev-list --topo-order HEAD | tail -n 1)"
fi

# Is the working copy clean?
# Is the working copy clean?
test -z "$(git status --untracked-files=normal --porcelain)"
VCS_WC_MODIFIED="${?}"

Expand Down Expand Up @@ -770,11 +770,11 @@ EOF

# For scheme output
schemeOutput() {
case "${VCS_WC_MODIFIED}" in
case "${VCS_WC_MODIFIED}" in
0) VCS_WC_MODIFIED="#f" ;;
1) VCS_WC_MODIFIED="#t" ;;
esac
cat > "${TARGETFILE}" << EOF
esac
cat > "${TARGETFILE}" << EOF
;; Generated by autorevision - do not hand-hack!
(define VCS_TYPE "${VCS_TYPE}")
(define VCS_BASENAME "${VCS_BASENAME}")
Expand All @@ -796,11 +796,11 @@ EOF

# For clojure output
clojureOutput() {
case "${VCS_WC_MODIFIED}" in
case "${VCS_WC_MODIFIED}" in
0) VCS_WC_MODIFIED="false" ;;
1) VCS_WC_MODIFIED="true" ;;
esac
cat > "${TARGETFILE}" << EOF
esac
cat > "${TARGETFILE}" << EOF
;; Generated by autorevision - do not hand-hack!
(def VCS_TYPE "${VCS_TYPE}")
(def VCS_BASENAME "${VCS_BASENAME}")
Expand Down Expand Up @@ -867,29 +867,29 @@ EOF
}

hppOutput() {
local NAMESPACE="$(echo "${VCS_BASENAME}" | tr '[:lower:]' '[:upper:]')"
cat > "${TARGETFILE}" << EOF
local NAMESPACE="$(echo "${VCS_BASENAME}" | tr '[:lower:]' '[:upper:]')"
cat > "${TARGETFILE}" << EOF
/* Generated by autorevision - do not hand-hack! */
#ifndef ${NAMESPACE}_AUTOREVISION_H
#define ${NAMESPACE}_AUTOREVISION_H
namespace $(echo "${NAMESPACE}" | tr '[:upper:]' '[:lower:]')
{
const std::string VCS_TYPE = "${VCS_TYPE}";
const std::string VCS_BASENAME = "${VCS_BASENAME}";
const std::string VCS_UUID = "${VCS_UUID}";
const int VCS_NUM = ${VCS_NUM};
const std::string VCS_DATE = "${VCS_DATE}";
const std::string VCS_BRANCH = "${VCS_BRANCH}";
const std::string VCS_TAG = "${VCS_TAG}";
const int VCS_TICK = ${VCS_TICK};
const std::string VCS_EXTRA = "${VCS_EXTRA}";
const std::string VCS_FULL_HASH = "${VCS_FULL_HASH}";
const std::string VCS_SHORT_HASH = "${VCS_SHORT_HASH}";
const int VCS_WC_MODIFIED = ${VCS_WC_MODIFIED};
const std::string VCS_TYPE = "${VCS_TYPE}";
const std::string VCS_BASENAME = "${VCS_BASENAME}";
const std::string VCS_UUID = "${VCS_UUID}";
const int VCS_NUM = ${VCS_NUM};
const std::string VCS_DATE = "${VCS_DATE}";
const std::string VCS_BRANCH = "${VCS_BRANCH}";
const std::string VCS_TAG = "${VCS_TAG}";
const int VCS_TICK = ${VCS_TICK};
const std::string VCS_EXTRA = "${VCS_EXTRA}";
const std::string VCS_FULL_HASH = "${VCS_FULL_HASH}";
const std::string VCS_SHORT_HASH = "${VCS_SHORT_HASH}";
const int VCS_WC_MODIFIED = ${VCS_WC_MODIFIED};
}
#endif
Expand Down Expand Up @@ -1121,7 +1121,7 @@ if [ ! -z "${AFILETYPE}" ]; then
elif [ "${AFILETYPE}" = "sql" ]; then
sqlOutput
elif [ "${AFILETYPE}" = "hpp" ]; then
hppOutput
hppOutput
elif [ "${AFILETYPE}" = "matlab" ]; then
matlabOutput
elif [ "${AFILETYPE}" = "octave" ]; then
Expand Down

0 comments on commit de8208a

Please sign in to comment.