[Pkg-wmaker-commits] [wmshutdown] 112/173: Remove wmshutdown-run.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Tue Aug 25 02:46:40 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository wmshutdown.

commit 1cad2e9c4d7a226091b1c8c3bcef0d5588efa15c
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date:   Wed Aug 6 12:32:29 2014 -0500

    Remove wmshutdown-run.
---
 Makefile.am      |   8 ++---
 wmshutdown-run.1 | 108 -------------------------------------------------------
 wmshutdown-run.c |  48 -------------------------
 3 files changed, 2 insertions(+), 162 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 7061eb8..e5128cb 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,13 +1,9 @@
-bin_PROGRAMS = wmshutdown wmshutdown-run
+bin_PROGRAMS = wmshutdown
 wmshutdown_SOURCES = wmshutdown.c
-wmshutdown_run_SOURCES = wmshutdown-run.c
 
 AM_CFLAGS = $(gtk_CFLAGS) $(x11_CFLAGS)
 AM_CPPFLAGS =  -DDATADIR=\"$(pkgdatadir)\"
 LIBS += $(gtk_LIBS) $(x11_LIBS)
 
 dist_pkgdata_DATA = wmshutdown.xpm
-dist_man_MANS = wmshutdown.1 wmshutdown-run.1
-
-install-exec-hook:
-	chmod ug+s $(DESTDIR)$(bindir)/wmshutdown-run
+dist_man_MANS = wmshutdown.1
diff --git a/wmshutdown-run.1 b/wmshutdown-run.1
deleted file mode 100644
index fa07221..0000000
--- a/wmshutdown-run.1
+++ /dev/null
@@ -1,108 +0,0 @@
-.\" Automatically generated by Pod::Man 2.27 (Pod::Simple 3.28)
-.\"
-.\" Standard preamble:
-.\" ========================================================================
-.de Sp \" Vertical space (when we can't use .PP)
-.if t .sp .5v
-.if n .sp
-..
-.de Vb \" Begin verbatim text
-.ft CW
-.nf
-.ne \\$1
-..
-.de Ve \" End verbatim text
-.ft R
-.fi
-..
-.\" Set up some character translations and predefined strings.  \*(-- will
-.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
-.\" double quote, and \*(R" will give a right double quote.  \*(C+ will
-.\" give a nicer C++.  Capital omega is used to do unbreakable dashes and
-.\" therefore won't be available.  \*(C` and \*(C' expand to `' in nroff,
-.\" nothing in troff, for use with C<>.
-.tr \(*W-
-.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
-.ie n \{\
-.    ds -- \(*W-
-.    ds PI pi
-.    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
-.    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch
-.    ds L" ""
-.    ds R" ""
-.    ds C` ""
-.    ds C' ""
-'br\}
-.el\{\
-.    ds -- \|\(em\|
-.    ds PI \(*p
-.    ds L" ``
-.    ds R" ''
-.    ds C`
-.    ds C'
-'br\}
-.\"
-.\" Escape single quotes in literal strings from groff's Unicode transform.
-.ie \n(.g .ds Aq \(aq
-.el       .ds Aq '
-.\"
-.\" If the F register is turned on, we'll generate index entries on stderr for
-.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
-.\" entries marked with X<> in POD.  Of course, you'll have to process the
-.\" output yourself in some meaningful fashion.
-.\"
-.\" Avoid warning from groff about undefined register 'F'.
-.de IX
-..
-.nr rF 0
-.if \n(.g .if rF .nr rF 1
-.if (\n(rF:(\n(.g==0)) \{
-.    if \nF \{
-.        de IX
-.        tm Index:\\$1\t\\n%\t"\\$2"
-..
-.        if !\nF==2 \{
-.            nr % 0
-.            nr F 2
-.        \}
-.    \}
-.\}
-.rr rF
-.\" ========================================================================
-.\"
-.IX Title "wmshutdown-run 1"
-.TH wmshutdown-run 1 "2014-07-23" "wmshutdown-run" "2014-07-23"
-.\" For nroff, turn off justification.  Always turn off hyphenation; it makes
-.\" way too many mistakes in technical documents.
-.if n .ad l
-.nh
-.SH "NAME"
-wmshutdown \- suid program called by wmshutdown(1) to call /sbin/shutdown
-.SH "SYNOPSIS"
-.IX Header "SYNOPSIS"
-.Vb 1
-\&  wmshutdown\-run
-.Ve
-.SH "DESCRIPTION"
-.IX Header "DESCRIPTION"
-Wmshutdown-run is helper program for graphical dock application
-\&\fIwmshutdown\fR\|(1) that allows user to shutdown or reboot the workstation just by
-clickig a button on the desktop.
-.SH "OPTIONS"
-.IX Header "OPTIONS"
-None.
-.SH "ENVIRONMENT"
-.IX Header "ENVIRONMENT"
-None.
-.SH "FILES"
-.IX Header "FILES"
-None.
-.SH "SEE ALSO"
-.IX Header "SEE ALSO"
-\&\fIwmshutdown\-run\fR\|(1)
-.SH "AUTHORS"
-.IX Header "AUTHORS"
-This manual page was written by Jari Aalto <jari.aalto at cante.net>, for
-the Debian \s-1GNU\s0 system (but may be used by others). Released under
-license \s-1GNU GPL\s0 v2 or (at your option) any later version. For more
-information about license, visit <http://www.gnu.org/copyleft/gpl.html>.
diff --git a/wmshutdown-run.c b/wmshutdown-run.c
deleted file mode 100644
index 4cff380..0000000
--- a/wmshutdown-run.c
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * shutdown.c
- *
- * (C) 2001 Rafael V. Aroca <rafael at linuxqos.cjb.net>
- *
- */
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
-int main(int argc, char **argv) {
-
-	if (argv[1] != NULL) {
-
-		if (strcmp((char*)argv[1], "-r") == 0) {
-			int ch;
-			FILE *output;
-
-			printf("Rebooting...\n");
-			output = popen("/sbin/shutdown now -r", "r");
-			ch = fgetc(output);
-			while (ch != EOF) {
-				printf("%c", ch);
-				ch = fgetc(output);
-			}
-			pclose(output);
-		}
-
-		if (strcmp(argv[1], "-h") == 0) {
-			int ch;
-			FILE *output;
-
-			printf("Halting...\n");
-			output = popen("/sbin/shutdown now -h", "r");
-			ch = fgetc(output);
-			while (ch != EOF) {
-				printf("%c", ch);
-				ch = fgetc(output);
-			}
-			pclose(output);
-		}
-
-		if (!strcmp(argv[1], "-h") == 0 && !strcmp(argv[1], "-r") == 0)
-			printf("Nothing done.\n");
-	} else printf("Nothing done.\n");
-}
-

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmshutdown.git



More information about the Pkg-wmaker-commits mailing list