diff options
Diffstat (limited to 'modules')
32 files changed, 97 insertions, 97 deletions
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>. |