summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-07-09 18:53:23 -0600
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-07-09 18:53:23 -0600
commit4fae29531c16df28685ca0530fbc0162b7882cff (patch)
treeb838d208af69475f68e1bba212433f5f85b2d005
parent1c2efabda503cc1b668b492ff553f18179cdb429 (diff)
whitespace
-rw-r--r--HACKING53
-rw-r--r--Makefile2
-rw-r--r--common.bottom.mk2
-rw-r--r--common.each.mk2
-rw-r--r--common.once.mk2
-rw-r--r--common.top.mk2
-rwxr-xr-xconfigure12
-rw-r--r--modules/Makefile2
-rw-r--r--modules/comments/comment.sh6
-rw-r--r--modules/comments/commit.sh6
-rw-r--r--modules/comments/print.sh6
-rw-r--r--modules/comments/showcomment.sh6
-rw-r--r--modules/date.author/commit.sh6
-rw-r--r--modules/files/_stdio.sh6
-rw-r--r--modules/files/blob-gethash.sh6
-rw-r--r--modules/files/blob-gettype.sh6
-rw-r--r--modules/files/commit.d.sh8
-rw-r--r--modules/files/commit.f.sh6
-rw-r--r--modules/files/file-gettype.sh6
-rw-r--r--modules/files/get.d.sh6
-rw-r--r--modules/files/get.f.sh6
-rw-r--r--modules/files/get.sh6
-rw-r--r--modules/files/ls.sh6
-rw-r--r--modules/files/print.sh6
-rw-r--r--modules/files/tree.sh6
-rw-r--r--modules/module.mk2
-rw-r--r--modules/tags/commit.sh6
-rw-r--r--modules/tags/get-tag.sh6
-rw-r--r--modules/tags/print.sh6
-rw-r--r--modules/tags/tag-id.sh6
-rw-r--r--modules/tags/tag.sh6
-rw-r--r--modules/tree/addparent.d.sh8
-rw-r--r--modules/tree/addparent.f.sh6
-rw-r--r--modules/tree/addparent.sh8
-rw-r--r--modules/tree/commit.sh6
-rw-r--r--modules/tree/delparent.f.sh10
-rw-r--r--modules/tree/getchildren.sh6
-rw-r--r--modules/tree/getparents.sh6
-rw-r--r--modules/tree/print.sh6
-rw-r--r--wrapper/Makefile2
-rw-r--r--wrapper/inner.sh.m410
-rw-r--r--wrapper/outer.c2
42 files changed, 141 insertions, 142 deletions
diff --git a/HACKING b/HACKING
index 968e685..773d247 100644
--- a/HACKING
+++ b/HACKING
@@ -8,10 +8,10 @@
I know this file is long* and boring. I try to keep it preened and
informative, but would rather spend my time actually hacking. If
you think you can help this file, have at it! ~ Luke Shumaker
-
+
* at 200+ lines, it's longer than any rvs source file
-- - -cut-here- - 8< - - - - - - - - - - - - - - - - - - - - - - - - -
+- - -cut-here- - 8< - - - - - - - - - - - - - - - - - - - - - - - - -
//////////////////////////////////////////////////////////////////////
rvs 0.7.0
retroactive versioning system
@@ -30,7 +30,7 @@
with `--name=NAME' option (variables that have `rvs' in the name
will not be renamed, but the user will never know this unless they
peek at the code).
-
+
Other options to configure and their default values are:
name='rvs'
@@ -60,17 +60,17 @@
srcdir=$(readlink -f `dirname "$0"`)
Where the source code is. The default value evaluates
to the directory of the `configure' script.
-
+
These can either be changed by manually changing `configure' or by
running it like:
./configure --VAR_NAME=VALUE
-
+
In this document, the `$(VAR_NAME)' refers to whatever you set the
value to.
-
+
The configure script will run on any instance of `Makefile.in' in
$(srcdir).
-
+
Currently, rvs is distributed with 2 plugins. `repo'[sitory] is
the core of the rvs file database. `users' handles all usernames,
settings, and other info.
@@ -92,7 +92,7 @@
have lowest priority (see `$(libexecdir)/$(rvs)/plugins').
uninstall PLUGIN
Uninstalls PLUGIN. Did that really need to be said?
-
+
A plugin is simply a collection of independent executable files.
When rvs is invoked, it looks for the COMMAND in a few places:
1) checks if COMMAND is an built-in command
@@ -103,15 +103,14 @@
`$(libexecdir)/$(rvs)/plugins', in the order they appear in
the file.
4) if rvs does not find the command, it reports an error
-
-
+
If you would like to contribute a plugin, or distribute one with a
fork, all you have to do is put it in `$(srcdir)/plugins/NAME'. The
main Makefile will recognize any directory in `$(srcdir)/plugins/'
as a plugin, and will run `make -C `plugins/NAME/Makefile'. It
should create a directory (mine use `plugins/NAME/out') to put ALL,
- and ONLY the final files to be used by that plugin.
-
+ and ONLY the final files to be used by that plugin.
+
========this is outdated but I don't really want to keep editing it ==
build system
@@ -134,8 +133,8 @@
prefix simply move the wrapper
bindir simply move the wrapper
libexecdir move the directory, then update the line
- `RVSDIR=...' in the wrapper
-
+ `RVSDIR=...' in the wrapper
+
I have designed this system to be extremely modular. As you may
have figured out, each bit on functionality is in it's own
executable, and the file you call when you type `rvs' is just a
@@ -143,12 +142,12 @@
The wrapper is quite simple in mechanism. It simply checks if
`$$libdir$$/COMMAND_NAME' exists, and if so, runs that file.
-
+
The `rvs commit' command is also quite simple in design. It takes a
single argument; the file to commit. If no target is specified, it
defaults to `./'. It checks which type of file the target is, and
runs `rvs commit.FILE_CODE TARGET'. The file codes are as follows:
-
+
block (buffered) special b
character (unbuffered) special c
directory d
@@ -161,7 +160,7 @@
As you probably noticed (if you've looked at the blueprints or
source files), only directories and regular files have been
implemented as of rvs 0.7.0.
-
+
After `rvs commit' has done this, it creates a meta-file for that
commit. The meta file contains author, copyright owner, license
data, file permissions, timestamps, etc. The id of the meta-file is
@@ -169,7 +168,7 @@
get works in much the same way as commit, only it reads the file
type from the meta-file, then runs `rvs get.FILE_CODE COMMIT_ID'.
-
+
If you implement any other file types, save the commit and get
functions in the proper locations.
@@ -190,11 +189,12 @@
having to worry about bindings`$(libexecdir)/$(rvs)
$$libdir$$/lib/
+
THIS WAS WRITTEN FOR rvs 0.6.2
THIS PORTION OF THE CODE IS BEING REVISED IN rvs 0.6.3
I have created two 'libraries' for use by rvs components. They
- provide several functions that can be accessed by shell script by
+ provide several functions that can be accessed by shell script by
using the code:
source "`rvs -d`/lib/stdio"
or
@@ -215,7 +215,7 @@
with error
version
print the version information and exit with success
-
+
rvsdb provides several functions and variables for dealing with the
rvs database:
getid FILE
@@ -241,14 +241,14 @@
the value VAL
the database (.rvs/*)
-
+
So, what are all these files doing in this database? The scheme is
fairly simple. In the `.rvs' directory there is 1 directory, the
`files' directory. There used to be a folder for tmpfiles (0.5.8-
0.6.2), but no more (0.6.3+). If you need a tmpfile, just run:
FILENAME=$(mktemp -t)
The `files' directory is where all the data is kept.
-
+
When any file is committed, whether it be a regular file, a
directory, a link, or any other type of file, 2 files are created
in `.rvs/files', the "raw-file" and the "meta-file". When we speak
@@ -260,29 +260,28 @@
case of an regular file, the raw-file contains the file itself. For
directories, it contains pointers to each file inside the
directory.
-
+
$$libdir$$/commit calls $$libdir$$/commit.FILETYPE to generate the
raw-file, but generates the meta-file itself (in `.rvs/tmp', then
calls commit.f to commit the meta-file). It then returns the ID of
the meta-file. Therefore, the user never deals with the IDs of
raw-files, and doesn't need to. The metafiles contain pointers to
the corresponding raw-files.
-
+
To keep things modular, commit.f is the ONLY thing that should
actually put files in `.rvs/files', and get.f the only thing that
should get them. Everything else should call them.
-
+
The repo and init are the ONLY things that should have `.rvs'
hardcoded into them. If the repository directory is needed, then
use `rvs repo'. Again, in the core, these should only be the .f
functions, however, it will be useful to plugins.
-
+
Why do we have the `files' directory, why don't we just put
everything in `.rvs'? This way:
* There is a spot to put user data, when we get around to writing
it
-
final thoughts
I have set up bazaar repository at Launchpad:
diff --git a/Makefile b/Makefile
index 479eb88..55c26ef 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
#!/usr/bin/make -f
# Copyright (C) 2015 Luke Shumaker
-#
+#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
diff --git a/common.bottom.mk b/common.bottom.mk
index 4a5833c..e8b5493 100644
--- a/common.bottom.mk
+++ b/common.bottom.mk
@@ -1,5 +1,5 @@
# Copyright (C) 2015 Luke Shumaker
-#
+#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
diff --git a/common.each.mk b/common.each.mk
index 05f1045..76c37b5 100644
--- a/common.each.mk
+++ b/common.each.mk
@@ -1,5 +1,5 @@
# Copyright (C) 2015 Luke Shumaker
-#
+#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
diff --git a/common.once.mk b/common.once.mk
index 38a8df1..b929c53 100644
--- a/common.once.mk
+++ b/common.once.mk
@@ -1,5 +1,5 @@
# Copyright (C) 2015 Luke Shumaker
-#
+#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
diff --git a/common.top.mk b/common.top.mk
index 9a2fa0a..9e57088 100644
--- a/common.top.mk
+++ b/common.top.mk
@@ -1,5 +1,5 @@
# Copyright (C) 2015 Luke Shumaker
-#
+#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
diff --git a/configure b/configure
index 15b52cf..b4dece3 100755
--- a/configure
+++ b/configure
@@ -2,17 +2,17 @@
name='configure' # Luke's configureation script
#version='1.0'
# Copyright (C) 2009 Luke Shumaker
-#
+#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING.
# If not, see <http://www.gnu.org/licenses>.
@@ -70,14 +70,14 @@ echo '#!/bin/sed -f' > var.sed
for var in $vars; do
var1="_$var"
val=${!var1}
-
+
# GNU bash optimized version
- var=${var//:/\\:}
+ var=${var//:/\\:}
val=${val//:/\\:}
# POSIX version
#var=`echo "$var" | sed 's@:@\\:@g'`
#val=`echo "$val" | sed 's@:@\\:@g'`
-
+
echo "s:@$var@:$val:g" >> var.sed
done
diff --git a/modules/Makefile b/modules/Makefile
index 9830a8e..ddd3928 100644
--- a/modules/Makefile
+++ b/modules/Makefile
@@ -1,6 +1,6 @@
#!/usr/bin/make -f
# Copyright (C) 2015 Luke Shumaker
-#
+#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
diff --git a/modules/comments/comment.sh b/modules/comments/comment.sh
index 0be99e5..aa615ca 100644
--- a/modules/comments/comment.sh
+++ b/modules/comments/comment.sh
@@ -2,17 +2,17 @@
name='comment'
ver=0.1
# Copyright (C) 2010 Luke Shumaker
-#
+#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING.
# If not, see <http://www.gnu.org/licenses>.
diff --git a/modules/comments/commit.sh b/modules/comments/commit.sh
index d13d754..4163387 100644
--- a/modules/comments/commit.sh
+++ b/modules/comments/commit.sh
@@ -2,17 +2,17 @@
name='rvs @ID@ commit'
ver=0.1
# Copyright (C) 2010 Luke Shumaker
-#
+#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING.
# If not, see <http://www.gnu.org/licenses>.
diff --git a/modules/comments/print.sh b/modules/comments/print.sh
index b04a9cc..bef8e87 100644
--- a/modules/comments/print.sh
+++ b/modules/comments/print.sh
@@ -2,17 +2,17 @@
name='print'
ver=0.1
# Copyright (C) 2010 Luke Shumaker
-#
+#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING.
# If not, see <http://www.gnu.org/licenses>.
diff --git a/modules/comments/showcomment.sh b/modules/comments/showcomment.sh
index efbc00a..3e4e943 100644
--- a/modules/comments/showcomment.sh
+++ b/modules/comments/showcomment.sh
@@ -2,17 +2,17 @@
name='showcomment'
ver=0.1
# Copyright (C) 2010 Luke Shumaker
-#
+#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING.
# If not, see <http://www.gnu.org/licenses>.
diff --git a/modules/date.author/commit.sh b/modules/date.author/commit.sh
index c05f77b..8079fda 100644
--- a/modules/date.author/commit.sh
+++ b/modules/date.author/commit.sh
@@ -2,17 +2,17 @@
name='rvs @ID@ commit'
ver=0.1
# Copyright (C) 2010 Luke Shumaker
-#
+#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING.
# If not, see <http://www.gnu.org/licenses>.
diff --git a/modules/files/_stdio.sh b/modules/files/_stdio.sh
index 974e98e..0da03f0 100644
--- a/modules/files/_stdio.sh
+++ b/modules/files/_stdio.sh
@@ -2,17 +2,17 @@
#name='stdio'
#ver=0.9
# Copyright (C) 2009-2010 Luke Shumaker
-#
+#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING.
# If not, see <http://www.gnu.org/licenses>.
diff --git a/modules/files/blob-gethash.sh b/modules/files/blob-gethash.sh
index 74defbc..74a3f59 100644
--- a/modules/files/blob-gethash.sh
+++ b/modules/files/blob-gethash.sh
@@ -2,17 +2,17 @@
name='blob-gethash'
ver=0.9
# Copyright (C) 2009-2010 Luke Shumaker
-#
+#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING.
# If not, see <http://www.gnu.org/licenses>.
diff --git a/modules/files/blob-gettype.sh b/modules/files/blob-gettype.sh
index da3ee2a..0dd924d 100644
--- a/modules/files/blob-gettype.sh
+++ b/modules/files/blob-gettype.sh
@@ -2,17 +2,17 @@
name='blob-gettype'
ver=0.9
# Copyright (C) 2009-2010 Luke Shumaker
-#
+#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING.
# If not, see <http://www.gnu.org/licenses>.
diff --git a/modules/files/commit.d.sh b/modules/files/commit.d.sh
index d7e48f9..67263ec 100644
--- a/modules/files/commit.d.sh
+++ b/modules/files/commit.d.sh
@@ -2,17 +2,17 @@
name='commit.d'
ver=0.9
# Copyright (C) 2009-2010 Luke Shumaker
-#
+#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING.
# If not, see <http://www.gnu.org/licenses>.
@@ -32,7 +32,7 @@ for file in *; do
g="`stat "$file" -c'%g (%G)'`" # group
i="`"$RVS" commit "$file"`" # ID
n="$file" # name
-
+
# %p %o %g %i %n
echo "$p$t$o$t$g$t$i$t$n" >> "$tmp"
done
diff --git a/modules/files/commit.f.sh b/modules/files/commit.f.sh
index e0df1b2..4effab3 100644
--- a/modules/files/commit.f.sh
+++ b/modules/files/commit.f.sh
@@ -2,17 +2,17 @@
name='commit.f'
ver=0.9
# Copyright (C) 2009-2010 Luke Shumaker
-#
+#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING.
# If not, see <http://www.gnu.org/licenses>.
diff --git a/modules/files/file-gettype.sh b/modules/files/file-gettype.sh
index 2a1e0ca..ac1ba4e 100644
--- a/modules/files/file-gettype.sh
+++ b/modules/files/file-gettype.sh
@@ -2,17 +2,17 @@
name='file-gettype'
ver=0.9
# Copyright (C) 2009-2010 Luke Shumaker
-#
+#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING.
# If not, see <http://www.gnu.org/licenses>.
diff --git a/modules/files/get.d.sh b/modules/files/get.d.sh
index 646e29d..9aa493c 100644
--- a/modules/files/get.d.sh
+++ b/modules/files/get.d.sh
@@ -2,17 +2,17 @@
name='get.d'
ver=0.9
# Copyright (C) 2009-2010 Luke Shumaker
-#
+#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING.
# If not, see <http://www.gnu.org/licenses>.
diff --git a/modules/files/get.f.sh b/modules/files/get.f.sh
index e3d5edc..d5d889d 100644
--- a/modules/files/get.f.sh
+++ b/modules/files/get.f.sh
@@ -2,17 +2,17 @@
name='get.f'
ver=0.9
# Copyright (C) 2009-2010 Luke Shumaker
-#
+#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING.
# If not, see <http://www.gnu.org/licenses>.
diff --git a/modules/files/get.sh b/modules/files/get.sh
index 639ac57..7dd0f1d 100644
--- a/modules/files/get.sh
+++ b/modules/files/get.sh
@@ -2,17 +2,17 @@
name='get'
ver=0.9
# Copyright (C) 2009-2010 Luke Shumaker
-#
+#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING.
# If not, see <http://www.gnu.org/licenses>.
diff --git a/modules/files/ls.sh b/modules/files/ls.sh
index 9e586eb..1c4d620 100644
--- a/modules/files/ls.sh
+++ b/modules/files/ls.sh
@@ -2,17 +2,17 @@
name='ls'
ver=0.1
# Copyright (C) 2010 Luke Shumaker
-#
+#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING.
# If not, see <http://www.gnu.org/licenses>.
diff --git a/modules/files/print.sh b/modules/files/print.sh
index 3657d2f..9a03469 100644
--- a/modules/files/print.sh
+++ b/modules/files/print.sh
@@ -2,17 +2,17 @@
name='print'
ver=0.1
# Copyright (C) 2010 Luke Shumaker
-#
+#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING.
# If not, see <http://www.gnu.org/licenses>.
diff --git a/modules/files/tree.sh b/modules/files/tree.sh
index 6164d94..4092582 100644
--- a/modules/files/tree.sh
+++ b/modules/files/tree.sh
@@ -2,17 +2,17 @@
name='tree'
ver=0.1
# Copyright (C) 2010 Luke Shumaker
-#
+#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING.
# If not, see <http://www.gnu.org/licenses>.
diff --git a/modules/module.mk b/modules/module.mk
index 0d4ffd5..d3d3da2 100644
--- a/modules/module.mk
+++ b/modules/module.mk
@@ -1,6 +1,6 @@
#!/usr/bin/make -f
# Copyright (C) 2009, 2015 Luke Shumaker
-#
+#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
diff --git a/modules/tags/commit.sh b/modules/tags/commit.sh
index 9282a11..d8df1d0 100644
--- a/modules/tags/commit.sh
+++ b/modules/tags/commit.sh
@@ -2,17 +2,17 @@
name='rvs @ID@ commit'
ver=0.1
# Copyright (C) 2010 Luke Shumaker
-#
+#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING.
# If not, see <http://www.gnu.org/licenses>.
diff --git a/modules/tags/get-tag.sh b/modules/tags/get-tag.sh
index fa7895b..27d04da 100644
--- a/modules/tags/get-tag.sh
+++ b/modules/tags/get-tag.sh
@@ -2,17 +2,17 @@
name='rvs @ID@ get-tag'
ver=0.1
# Copyright (C) 2010 Luke Shumaker
-#
+#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING.
# If not, see <http://www.gnu.org/licenses>.
diff --git a/modules/tags/print.sh b/modules/tags/print.sh
index b7bc1c5..f9f7a54 100644
--- a/modules/tags/print.sh
+++ b/modules/tags/print.sh
@@ -2,17 +2,17 @@
name='print'
ver=0.1
# Copyright (C) 2010 Luke Shumaker
-#
+#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING.
# If not, see <http://www.gnu.org/licenses>.
diff --git a/modules/tags/tag-id.sh b/modules/tags/tag-id.sh
index ef95f69..050d12e 100644
--- a/modules/tags/tag-id.sh
+++ b/modules/tags/tag-id.sh
@@ -2,17 +2,17 @@
name='tag-id'
ver=0.1
# Copyright (C) 2010 Luke Shumaker
-#
+#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING.
# If not, see <http://www.gnu.org/licenses>.
diff --git a/modules/tags/tag.sh b/modules/tags/tag.sh
index bc3f546..90ff0f1 100644
--- a/modules/tags/tag.sh
+++ b/modules/tags/tag.sh
@@ -2,17 +2,17 @@
name='rvs @ID@ tag'
ver=0.1
# Copyright (C) 2010 Luke Shumaker
-#
+#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING.
# If not, see <http://www.gnu.org/licenses>.
diff --git a/modules/tree/addparent.d.sh b/modules/tree/addparent.d.sh
index db43dd2..20c28b4 100644
--- a/modules/tree/addparent.d.sh
+++ b/modules/tree/addparent.d.sh
@@ -2,17 +2,17 @@
name='addparent.d'
ver=0.1
# Copyright (C) 2010 Luke Shumaker
-#
+#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING.
# If not, see <http://www.gnu.org/licenses>.
@@ -31,7 +31,7 @@ while read line; do
name="`echo "$line" | cut -f2-`"
nID="`echo "$line" | cut -f1`"
oID="`sed -n "s:^\([a-z]\:[0-9a-f]*\)\t${name/:/\\:}$:\1:p" "$tp"`"
-
+
if [ -n "$oID" ]; then
nT="`"$RVS" blob-gettype "$nID"`"
oT="`"$RVS" blob-gettype "$oID"`"
diff --git a/modules/tree/addparent.f.sh b/modules/tree/addparent.f.sh
index 61b4f92..5d913da 100644
--- a/modules/tree/addparent.f.sh
+++ b/modules/tree/addparent.f.sh
@@ -2,17 +2,17 @@
name='addparent.f'
ver=0.1
# Copyright (C) 2010 Luke Shumaker
-#
+#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING.
# If not, see <http://www.gnu.org/licenses>.
diff --git a/modules/tree/addparent.sh b/modules/tree/addparent.sh
index 6759bcb..4f1fd86 100644
--- a/modules/tree/addparent.sh
+++ b/modules/tree/addparent.sh
@@ -2,17 +2,17 @@
name='addparent'
ver=0.1
# Copyright (C) 2010 Luke Shumaker
-#
+#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING.
# If not, see <http://www.gnu.org/licenses>.
@@ -24,7 +24,7 @@ parent=${2?"$usage"}
if [ ! "$child" = "$parent" ]; then
ct="`"$RVS" blob-gettype "$child"`"
pt="`"$RVS" blob-gettype "$parent"`"
-
+
if [ "$ct" = "$pt" ]; then
"$RVS" "addparent.$ct" "$child" "$parent"
else
diff --git a/modules/tree/commit.sh b/modules/tree/commit.sh
index 89b1bf6..1715f23 100644
--- a/modules/tree/commit.sh
+++ b/modules/tree/commit.sh
@@ -2,17 +2,17 @@
name='rvs @ID@ commit'
ver=0.1
# Copyright (C) 2010 Luke Shumaker
-#
+#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING.
# If not, see <http://www.gnu.org/licenses>.
diff --git a/modules/tree/delparent.f.sh b/modules/tree/delparent.f.sh
index e53df9b..422778d 100644
--- a/modules/tree/delparent.f.sh
+++ b/modules/tree/delparent.f.sh
@@ -2,17 +2,17 @@
name='delparent.f'
ver=0.1
# Copyright (C) 2010 Luke Shumaker
-#
+#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING.
# If not, see <http://www.gnu.org/licenses>.
@@ -23,12 +23,12 @@ parent=${2?"$usage"}
file="$REPO/tree/$child/$parent"
rm "$file"
-if [ -z "$(ls "`dirname "$file"`")" ]; then
+if [ -z "$(ls "`dirname "$file"`")" ]; then
rmdir "`dirname "$file"`"
fi
dir="$REPO/tree/$child"
-if [ -z "$(ls "`dirname "$dir"`")" ]; then
+if [ -z "$(ls "`dirname "$dir"`")" ]; then
rmdir "`dirname "$dir"`"
fi
diff --git a/modules/tree/getchildren.sh b/modules/tree/getchildren.sh
index 952522c..4ef5a22 100644
--- a/modules/tree/getchildren.sh
+++ b/modules/tree/getchildren.sh
@@ -2,17 +2,17 @@
name='getchildren'
ver=0.1
# Copyright (C) 2010 Luke Shumaker
-#
+#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING.
# If not, see <http://www.gnu.org/licenses>.
diff --git a/modules/tree/getparents.sh b/modules/tree/getparents.sh
index 6e3edbd..c060605 100644
--- a/modules/tree/getparents.sh
+++ b/modules/tree/getparents.sh
@@ -2,17 +2,17 @@
name='getparents'
ver=0.1
# Copyright (C) 2010 Luke Shumaker
-#
+#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING.
# If not, see <http://www.gnu.org/licenses>.
diff --git a/modules/tree/print.sh b/modules/tree/print.sh
index 0ebf8fd..709d125 100644
--- a/modules/tree/print.sh
+++ b/modules/tree/print.sh
@@ -2,17 +2,17 @@
name='print'
ver=0.1
# Copyright (C) 2010 Luke Shumaker
-#
+#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING.
# If not, see <http://www.gnu.org/licenses>.
diff --git a/wrapper/Makefile b/wrapper/Makefile
index 54047d2..22e9f46 100644
--- a/wrapper/Makefile
+++ b/wrapper/Makefile
@@ -1,6 +1,6 @@
#!/usr/bin/make -f
# Copyright (C) 2009, 2015 Luke Shumaker
-#
+#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
diff --git a/wrapper/inner.sh.m4 b/wrapper/inner.sh.m4
index 8444bd6..047b8f1 100644
--- a/wrapper/inner.sh.m4
+++ b/wrapper/inner.sh.m4
@@ -1,9 +1,9 @@
#!/usr/bin/env bash
# rvs inner.sh - The main RVS program
# Copyright (C) 2009-2010, 2015 Luke Shumaker
-#
+#
# This file is part of rvs.
-#
+#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
@@ -103,16 +103,16 @@ _repo() {
[[ $# -ne 0 ]] || errusage 1 'Usage: %q repo'
if [ -z "${!varname_REPO:-}" ]; then # we aren't getting a value from then env
local repo=".${PACKAGE,,}"
-
+
# [------can ascend-----] && ! [-not found repo--]
while [ "$PWD" != "$OLDPWD" ] && ! [ -d "$PWD/$repo" ]; do
cd ..
done
-
+
if [ -d "$PWD/$repo" ]; then
# we found a repository
printf '%s\n' "$PWD/$repo"
- else
+ else
# we didn't find a repository
error 128 "No %s repository found" "$PACKAGE"
fi
diff --git a/wrapper/outer.c b/wrapper/outer.c
index 4bc2d2f..c465555 100644
--- a/wrapper/outer.c
+++ b/wrapper/outer.c
@@ -56,7 +56,7 @@ main(int argc, char *argv[]) {
_("Could not allocate cleared memory"));
args[0] = exec_file;
memcpy(&args[1], argv, sizeof(char*) * argc);
-
+
execv(exec_file, args);
error(EXIT_FAILURE_EXEC, errno, _("Could not execute: %s"), exec_file);
return EXIT_FAILURE_EXEC;