Sponsored Content
Top Forums Shell Programming and Scripting Makefile autogenerated by shell script for a given .c code file Post 302275320 by darius2 on Friday 9th of January 2009 07:03:04 PM
Old 01-09-2009
Quote:
Originally Posted by Neo
Thank you for your post, it is a bit hard for people to understand you. Could you be very specific about how we can help you, one question at a time? Thanks.
Thanks my friend.
There is nothing complicated in asking basic questions.
I will try to describe you the issue.
I have been living on the Internet for the last 20 years
and expected to access some learning technologies to learn faster what I need for some research projects I am working on.

Example:1
about you:
----------------------
Join Date: Sep 2000
Location: Asia Pacific
Posts: 4,666

4,666 posts in only 8 years.
You must be both Sheel Programming and Scripting expert and guru.
You are smart and there is no more chance to read or view all of your posts.

Example: 2

My efforts to learn basic of Gnuplot.
I have visited via Google about 20 web sites devoted to Gnuplot.
Both manuals , FAQ, examples , papers ..
and spend more than 24 hours reading and testing gnuplot examples.

Could you tell me how to access 1-page abbriged gnuplot manual, just basics:
few examples for dumb terminal,
how to plot from data file input
how to plot from live data stream
how to plot from shell, perl, javascript, php script
how to write plot macro as a script

So what I am really interested in, is 1-page manual.
Otherwide I visit interesting web pages, each 20-50 pages long
and extract and extract what I really need for tests, to build
1-page manual of interest to me.

The same with c code examples.
Some come with Makefile, some don't, just zipped directory of files.

In the last few days tried to compile Linux dialog
and curses.h is missing
ncurses-devel
not compiled yet. for my Linux embedded device.

I can ask you, others to help me or look for 1-page HowTo manual to get help on myself.

That's the problem.
Visiting Google I get access to hundreds of web pages devoted to gnuplot, Linux dialog, Shell scripting.
But what I really need is 1-page HowTo manual
or good answer to my HowTo question.

As people are busy answering hundreds of questions, and to get the right answer promptly is not easy, my solution to this problem is to extract just what counts from 100-page manuals.

In the case of shell programming and scripting forum with thousands of questions asked over and over again, such an organization of archives with already answered questions, to keep text as short as possible
and questions aggregated by categories, tags.

Tag cloud is still not a solution to your 489 pages long archives.

I am sure, the same question, asked by me, have been already asked and got answered hundreds of times in the past at this or another place.
On Usenet, other web sites, mayby on Google Groups or the like.

And I work really hard to find answers to my questions on the net before asking them on your forum.
Mayby I am wrong, but referring me to a right place is as good as giving me a right answer.

So human-based Google-like search engine is exactly what I am looking for.

As you claim that it takes humans some time to understand a question asked in fully, so mayby there is a way to replace humans by
some algorithms, generating such abriged 1-page manuals
for a question asked ( knowledge extraction from Google scanned, indexed
and ranked virtual libraries).

If you are aware of any such solution, please let me know.

Darius
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

embeding shell script in makefile

Hi I am new to shell scripting and makefile. I want a command's output in makefile to process further, can anyone plz suggest me a way ? I want ls -d *.dsm output in a variable and want to process it in makefile itself. It's urgent Thanks In advance (0 Replies)
Discussion started by: madhu12345
0 Replies

2. Shell Programming and Scripting

shell script in makefile

Hi, Can we execute a shell script by makefile. I mean we will write a shell script in a make file and it will be executed when we compile the C++ program using make file. (2 Replies)
Discussion started by: surjyap
2 Replies

3. Shell Programming and Scripting

Shell script makefile

Is there a way to write a makefile for all the source files in a directory with a shell script? (2 Replies)
Discussion started by: zzhan
2 Replies

4. Shell Programming and Scripting

turn on shell tracing of a makefile

hey, within a shell script file I know how to turn on tracing using "-x" #!/bin/bash -x now I have a complicated makefile which contains lots of `command`, and i would like to trace these `command`, where shall i put the option "-x"? thanks! (1 Reply)
Discussion started by: patiobarbecue
1 Replies

5. Shell Programming and Scripting

Capture makefile errors in shell script

Hi, I have a bash script which calls a few "make". I would like to know whether the makefile failed with any errors. How do I do that in the script? Thanks, S (2 Replies)
Discussion started by: suryaemlinux
2 Replies

6. Shell Programming and Scripting

Call makefile from shell script

I'm writing a VERY simple shell script. I need to call a makefile in a subdirectory. What's the command I need to use? ./dir/make and ./dir/makefile doesn't work. Thanks in advance (1 Reply)
Discussion started by: yamahabob
1 Replies

7. Shell Programming and Scripting

how to run a shell script through Makefile

I want to run a target defined in a shell script. The shell script name is 'ua.sc' and the target in it is 'N' i.e. (ua N) throught a makefile. How can i do it so that i can run it with a make target. (3 Replies)
Discussion started by: vineet.dhingra
3 Replies

8. Shell Programming and Scripting

using a Shell Script in a Makefile

Hello, I have a Makefile that converts wrl (vrml) files to html files... how can I use a shell script in that makefile which works on all html files after converting? The Shell Script have to find and replace a String in every createt html file. sorry I'm a Newbie, so I hope someone can... (0 Replies)
Discussion started by: Dan_78
0 Replies

9. Shell Programming and Scripting

HTML code upload text file grep through shell script

I am looking for HTML code that browse text file and grep with database file then retrieve result txtfileuploaded contain 112233 115599 113366 shell code grep -F -f txtfileuploaded /data/database.txt result 112233 Mar 41$ 115599 Nov 44$ 113366 Oct 33$ attached... (2 Replies)
Discussion started by: phpshell
2 Replies

10. Shell Programming and Scripting

Shell Script Comment code blocks in a bash source file

Just began to learn on Shell Script. I got an exercise from my friend. I know how to make this happen in C, but I'm not familiar with Shell Script. Hope I can get some help from all of you. I want to write a bash script to comment code blocks in a bash source file. What I mean comment is '#', I... (1 Reply)
Discussion started by: HiFuture0801
1 Replies
PURITY(6)							   Games Manual 							 PURITY(6)

NAME
purity - a general purpose purity test SYNOPSIS
/usr/games/purity [ flags ] [ testname ] DESCRIPTION
Purity is an interactive purity test program with a simple, user interface and datafile format. For each test, questions are printed to the your terminal, and you are prompted for an answer to the current question. At a prompt, these are your choices: y Answer "yes" to the question. n Answer "no" to the question. b Backup one question, if you answered it incorrectly, or someone is watching you take the test, and you don't (or do) want to admit a different answer. r Redraw the current question. q Quit the test, and print the current score. ? Print a help screen for the current prompt. k Kill a section of the test. This skips all the questions of the test until the next subject heading. a Toggle answer mode between real answers and obfuscated answers. Real answers print "yes" and "no", while obfuscated answers are "Maybe" and "maybe". Obfuscated answers are preferred if you are shy, and don't want people to be able to read your answers over your shoulder as you take the test. d Toggle dERanGe output. s Print your current score on the test you are taking. l Toggle score logging. At the end of the test, your score is printed out. For most purity tests, lower scores denote more "experience" of the test material. FLAGS
These are the command line flags for the test. -a Show real answers (i.e. "yes" and "no") instead of obfuscated ones (i.e. "Maybe" and "maybe") as you answer the questions. -d PrINt THe tESt in DerANgeD pRInT. -f Take the test in fast mode. Only the questions are printed, and not any other text blocks, like the introdution, subject headers, and the conclusion. -l Take the test without having your score logged. -p Print the test without prompting for answers. This is useful for making hard copies of the tests without having to edit out the prompts by hand. -r Decrypt the test using the Rot 13 algorithm. This is done as a form of "protection", such that if you read a rot13 test and it offends you, it's your own fault. -z zoom through more prompts in large text blocks. The default is to prompt the user for more when a screenful of text has been printed without any user input. DATAFILE FORMAT
The format of the datafiles is a very simple format, intended such that new tests can quickly and easily be converted to run with the test. There are four types of text in a purity test datafile. Each type is contained in a bracket type of punctuation. The definitions are as follows: the styles of text blocks are: { plain text block } [ subject header ] ( test question ) and < conclusion > Plain text blocks are printed out character for character. Subject headers are preceded by their subject numbers, starting at 1, and then printed as text blocks. Questions are preceded by their numbers, and then prompt the user to answer the question, keeping track of the user's current score. Conclusions first calculate and print the user's score for the test, then print out the conclusion as a text block. If you wish to include any of the various bracket punctuation in your text, the backslash ("") character will escape the next character. To print a question with parentheses, you would use the following format: (have you ever written a purity test (like this one)?) the output would be this: 1. have you ever written a purity test (like this one)? and then it would have asked the user for her/his answer. For a generic datafile, use the "sample" datafile for the test. FILES
/var/games/purity.scores the score logfile /usr/share/games/purity/* test data files AUTHOR
Eric Lechner, lechner@ucscb.ucsc.edu 18 December 1989 PURITY(6)
All times are GMT -4. The time now is 12:20 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy