Sponsored Content
Top Forums Shell Programming and Scripting Automatic Copy of File Contents to Clipboard Post 302091216 by ilak1008 on Saturday 30th of September 2006 12:26:53 AM
Old 09-30-2006
I downloaded the xclip files and followed the procedure mentioned in the INSTALL.txt file. From /usr/openwin/bin directory, I ran xmkmf and got the following error message:
imake DUseInstalled -I/usr/openwin/bin/lib/X11/config
imake: No such file or directory: No description file. Stop.

Could you please tell me what have I done wrong?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Copy selected contents from file

I want to capture contents of a file between 2 strings into another file for eg all lines in between the keywords "start log" and "end log" should be copied into another file (4 Replies)
Discussion started by: misenkiser
4 Replies

2. UNIX for Dummies Questions & Answers

Copy text from a file from VI editor to Windows clipboard

Copy text from a file from VI editor to Windows clipboard, I mean copy entire file in vi editor to notepad. (13 Replies)
Discussion started by: zhshqzyc
13 Replies

3. Shell Programming and Scripting

copy the contents between two keywords to a new file.

Hi All, I want to edit my gate level netlists by searching for the content between two patterns eg: ff1 \test/a0 ( .CLK(\test/ClkInt0_acb_00x1 ),.D(\test/Rakicc ), .QB(\test/X ), .VDD(1'b1), .VSS(1'b0)); ff1 \test/a1 ( .CLK(\test/medis0_acb_00x1 ),.D(\test/hedwc ), .QB(\test/X ),... (6 Replies)
Discussion started by: naveen@
6 Replies

4. UNIX for Dummies Questions & Answers

Copy entire contents of file to clipboard

Hi, I am trying to figure out how to copy the contents of a file to the clipboard, then paste into a command. i.e copy contents of file /path/filename.txt to <command> <paste text> Hope that makes sense. Basically tryting to copy the text for use in a command without having to open the... (8 Replies)
Discussion started by: JCA70
8 Replies

5. Shell Programming and Scripting

Script to manipulate contents of clipboard

Hi there, I'm a total newbie and would like some help. I'd like to have a script to - load the contents of the clipboard into a variable - manipulate the variable by adding the characters /* to the beginning of every line and */ to the end of every line - load the variable back into the... (3 Replies)
Discussion started by: js8765
3 Replies

6. UNIX for Advanced & Expert Users

Xterm configuration : how to copy/paste in the CLIPBOARD

Hi, I can paste what is in the CLIPBOARD but I can't get xterm copy. and in fact I think I'm not able to select well with the cursor (I don't want to use the mouse)... here is my ~/.Xresources file : XTerm*highlightSelection: true XTerm*VT100.translations: #override \n\ None ... (5 Replies)
Discussion started by: xib.be
5 Replies

7. Shell Programming and Scripting

Need help to copy contents of a file

Hi, I am stuck up with a problem of copying the contents of a directory where one of the folder name is changed daily. Problem: I have the folder structure as: RefWorlds2/LINGCC4_X64/odsdev/odessy/UTI/621GA_build_xxx/.../.. In the above path the build number (xxx) will be changed... (3 Replies)
Discussion started by: SathaKarni
3 Replies

8. UNIX for Dummies Questions & Answers

How do I copy from windows clipboard into VI session?

trying to add my Google analytics code to every page on my site. I want to paste in into every file. I have it in Notepad++. If I open a file in VI, using Putty to connect is it easy to just paste into the VI session? (3 Replies)
Discussion started by: waynehazle
3 Replies

9. Shell Programming and Scripting

Copy contents of one file to another

I need to write a script (in bash) that copies the content of the first file in each folder of a directory to the second file in the same folder. I tried this and it didn't work - it just came back with errors and I'm not sure how to fix it. Help is very much appreciated! for mpdir in... (4 Replies)
Discussion started by: LeftoverStew
4 Replies

10. Solaris

Solaris 10 : command to copy text to the clipboard.

I'm searching a command to copy text to the clipboard. xclip and xsel are commands which are available on several kind Linux and Unix OS, but is unfortenuately not available on solaris 10. REF : xpt.sourceforge.net/techdocs/nix/x/general/xwin12-Xclipboard/single/ clipboard of openSolaris is... (9 Replies)
Discussion started by: droopy4u
9 Replies
IMAKE(1)						      General Commands Manual							  IMAKE(1)

NAME
imake - C preprocessor interface to the make utility SYNOPSIS
imake [ -Ddefine ] [ -Idir ] [ -Udefine ] [ -Ttemplate ] [ -f filename ] [ -C filename ] [ -s filename ] [ -e ] [ -v ] DESCRIPTION
Imake is used to generate Makefiles from a template, a set of cpp macro functions, and a per-directory input file called an Imakefile. This allows machine dependencies (such as compiler options, alternate command names, and special make rules) to be kept separate from the descriptions of the various items to be built. OPTIONS
The following command line options may be passed to imake: -Ddefine This option is passed directly to cpp. It is typically used to set directory-specific variables. For example, the X Window System used this flag to set TOPDIR to the name of the directory containing the top of the core distribution and CURDIR to the name of the current directory, relative to the top. -Idirectory This option is passed directly to cpp. It is typically used to indicate the directory in which the imake template and configura- tion files may be found. -Udefine This option is passed directly to cpp. It is typically used to unset variables when debugging imake configuration files. -Ttemplate This option specifies the name of the master template file (which is usually located in the directory specified with -I) used by cpp. The default is Imake.tmpl. -f filename This option specifies the name of the per-directory input file. The default is Imakefile. -C filename This option specifies the name of the .c file that is constructed in the current directory. The default is Imakefile.c. -s filename This option specifies the name of the make description file to be generated but make should not be invoked. If the filename is a dash (-), the output is written to stdout. The default is to generate, but not execute, a Makefile. -e This option indicates the imake should execute the generated Makefile. The default is to leave this to the user. -v This option indicates that imake should print the cpp command line that it is using to generate the Makefile. HOW IT WORKS
Imake invokes cpp with any -I or -D flags passed on the command line and passes the name of a file containing the following 3 lines: #define IMAKE_TEMPLATE "Imake.tmpl" #define INCLUDE_IMAKEFILE <Imakefile> #include IMAKE_TEMPLATE where Imake.tmpl and Imakefile may be overridden by the -T and -f command options, respectively. The IMAKE_TEMPLATE typically reads in a file containing machine-dependent parameters (specified as cpp symbols), a site-specific parameters file, a file defining variables, a file containing cpp macro functions for generating make rules, and finally the Imakefile (specified by INCLUDE_IMAKEFILE) in the current directory. The Imakefile uses the macro functions to indicate what targets should be built; imake takes care of generating the appropriate rules. Imake configuration files contain two types of variables, imake variables and make variables. The imake variables are interpreted by cpp when imake is run. By convention they are mixed case. The make variables are written into the Makefile for later interpretation by make. By convention make variables are upper case. The rules file (usually named Imake.rules in the configuration directory) contains a variety of cpp macro functions that are configured according to the current platform. Imake replaces any occurrences of the string ``@@'' with a newline to allow macros that generate more than one line of make rules. For example, the macro #define program_target(program, objlist) @@ program: objlist @@ $(CC) -o $@ objlist $(LDFLAGS) when called with program_target(foo, foo1.o foo2.o) will expand to foo: foo1.o foo2.o $(CC) -o $@ foo1.o foo2.o $(LDFLAGS) Imake also replaces any occurrences of the word ``XCOMM'' with the character ``#'' to permit placing comments in the Makefile without caus- ing ``invalid directive'' errors from the preprocessor. Some complex imake macros require generated make variables local to each invocation of the macro, often because their value depends on parameters passed to the macro. Such variables can be created by using an imake variable of the form XVARdefn, where n is a single digit. A unique make variable will be substituted. Later occurrences of the variable XVARusen will be replaced by the variable created by the corresponding XVARdefn. On systems whose cpp reduces multiple tabs and spaces to a single space, imake attempts to put back any necessary tabs (make is very picky about the difference between tabs and spaces). For this reason, colons (:) in command lines must be preceded by a backslash (). USE WITH THE X WINDOW SYSTEM
The X Window System used imake extensively up through the X11R6.9 release, for both full builds within the source tree and external soft- ware. X has since moved to GNU autoconf and automake for its build system in X11R7.0 and later releases, but still maintains imake for building existing external software programs that have not yet converted. As mentioned above, two special variables, TOPDIR and CURDIR, are set to make referencing files using relative path names easier. For example, the following command is generated automatically to build the Makefile in the directory lib/X/ (relative to the top of the sources): % ../.././config/imake -I../.././config -DTOPDIR=../../. -DCURDIR=./lib/X When building X programs outside the source tree, a special symbol UseInstalled is defined and TOPDIR and CURDIR are omitted. If the con- figuration files have been properly installed, the script xmkmf(1) may be used. INPUT FILES
Here is a summary of the files read by imake as used by X. The indentation shows what files include what other files. Imake.tmpl generic variables site.def site-specific, BeforeVendorCF defined *.cf machine-specific *Lib.rules shared library rules site.def site-specific, AfterVendorCF defined Imake.rules rules Project.tmpl X-specific variables *Lib.tmpl shared library variables Imakefile Library.tmpl library rules Server.tmpl server rules Threads.tmpl multi-threaded rules Note that site.def gets included twice, once before the *.cf file and once after. Although most site customizations should be specified after the *.cf file, some, such as the choice of compiler, need to be specified before, because other variable settings may depend on them. The first time site.def is included, the variable BeforeVendorCF is defined, and the second time, the variable AfterVendorCF is defined. All code in site.def should be inside an #ifdef for one of these symbols. FILES
Imakefile.c temporary input file for cpp /tmp/Imf.XXXXXX temporary Makefile for -s /tmp/IIf.XXXXXX temporary Imakefile if specified Imakefile uses # comments /usr/bin/cpp default C preprocessor SEE ALSO
make(1), xmkmf(1) Paul DuBois, imake-Related Software and Documentation, http://www.snake.net/software/imake-stuff/ Paul DuBois, Software Portability with imake, Second Edition, O'Reilly & Associates, 1996. S. I. Feldman, Make -- A Program for Maintaining Computer Programs ENVIRONMENT VARIABLES
The following environment variables may be set, however their use is not recommended as they introduce dependencies that are not readily apparent when imake is run: IMAKEINCLUDE If defined, this specifies a ``-I'' include argument to pass to the C preprocessor. E.g., ``-I/usr/X11/config''. IMAKECPP If defined, this should be a valid path to a preprocessor program. E.g., ``/usr/local/cpp''. By default, imake will use cc -E or /usr/bin/cpp, depending on the OS specific configuration. IMAKEMAKE If defined, this should be a valid path to a make program, such as ``/usr/local/make''. By default, imake will use whatever make pro- gram is found using execvp(3). This variable is only used if the ``-e'' option is specified. AUTHOR
Todd Brunhoff, Tektronix and MIT Project Athena; Jim Fulton, MIT X Consortium X Version 11 imake 1.0.5 IMAKE(1)
All times are GMT -4. The time now is 02:07 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy