Changeset 23139
- Timestamp:
- Mar 3, 2009, 3:52:19 PM (17 years ago)
- Location:
- trunk/ppSim/src
- Files:
-
- 1 added
- 2 edited
-
Makefile.am (modified) (2 diffs)
-
ppSim.h (modified) (3 diffs)
-
ppSimVersion.c (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSim/src/Makefile.am
r18011 r23139 1 1 bin_PROGRAMS = ppSim ppSimSequence 2 2 3 ppSim_CPPFLAGS = $(PSLIB_CFLAGS) $(PSMODULE_CFLAGS) $(PSPHOT_CFLAGS) $(PSASTRO_CFLAGS) $(ppSim_CFLAGS) 3 PPSIM_VERSION=`if [ -e ../../VERSION ]; then cat ../../VERSION; else svnversion; fi` 4 PPSIM_BRANCH=`if [ -e ../../BRANCH ]; then cat ../../BRANCH; else svn info | sed -n -e '/URL:/ h' -e '/Repository Root:/ { x; H; x; s|Repository Root: \(.*\)\nURL: \1\(.*\)|\2| ; s|^/|| ; s|/[a-zA-Z]*/src.*|| ; p }'; fi` 5 PPSIM_SOURCE=`if [ -e ../../SOURCE ]; then cat ../../SOURCE; else svn info | sed -n -e 's/Repository UUID: // p'; fi` 6 7 # Force recompilation of ppSimVersion.c, since it gets the version information 8 ppSimVersion.c: FORCE 9 touch ppSimVersion.c 10 FORCE: ; 11 12 ppSim_CPPFLAGS = $(PSLIB_CFLAGS) $(PSMODULE_CFLAGS) $(PSPHOT_CFLAGS) $(PSASTRO_CFLAGS) $(ppSim_CFLAGS) -DPPSIM_VERSION=\"$(PPSIM_VERSION)\" -DPPSIM_BRANCH=\"$(PPSIM_BRANCH)\" -DPPSIM_SOURCE=\"$(PPSIM_SOURCE)\" 4 13 ppSim_LDFLAGS = $(PSLIB_LIBS) $(PSMODULE_LIBS) $(PSPHOT_LIBS) $(PSASTRO_LIBS) 5 14 ppSim_SOURCES = \ … … 35 44 ppSimMosaicChip.c \ 36 45 ppSimRandomGaussian.c \ 37 ppSimBadPixels.c 46 ppSimBadPixels.c \ 47 ppSimVersion.c 38 48 39 49 ppSimSequence_CPPFLAGS = $(PSLIB_CFLAGS) $(PSMODULE_CFLAGS) $(PSASTRO_CFLAGS) $(ppSim_CFLAGS) -
trunk/ppSim/src/ppSim.h
r21183 r23139 19 19 20 20 // Compare a value with minimum and maximum values, replacing where required. 21 #define COMPARE(VALUE,MIN,MAX) { \22 if (VALUE < MIN) { MIN = VALUE; } \23 if (VALUE > MAX) { MAX = VALUE; } \21 #define COMPARE(VALUE,MIN,MAX) { \ 22 if (VALUE < MIN) { MIN = VALUE; } \ 23 if (VALUE > MAX) { MAX = VALUE; } \ 24 24 } 25 25 … … 147 147 float ppSimMagToFlux (float mag, float zp); 148 148 149 float ppSimArgToRecipeF32(bool *status, 150 psMetadata *options, // Target to which to add value151 const char *recipeName, // Name for value in the recipe152 psMetadata *arguments, // Command-line arguments153 const char *argName// Argument name in the command-line arguments149 float ppSimArgToRecipeF32(bool *status, 150 psMetadata *options, // Target to which to add value 151 const char *recipeName, // Name for value in the recipe 152 psMetadata *arguments, // Command-line arguments 153 const char *argName // Argument name in the command-line arguments 154 154 ); 155 155 156 156 int ppSimArgToRecipeS32(bool *status, 157 psMetadata *options, // Target to which to add value158 const char *recipeName, // Name for value in the recipe159 psMetadata *arguments, // Command-line arguments160 const char *argName// Argument name in the command-line arguments157 psMetadata *options, // Target to which to add value 158 const char *recipeName, // Name for value in the recipe 159 psMetadata *arguments, // Command-line arguments 160 const char *argName // Argument name in the command-line arguments 161 161 ); 162 162 163 163 char *ppSimArgToRecipeStr(bool *status, 164 psMetadata *options, // Target to which to add value165 const char *recipeName, // Name for value in the recipe166 psMetadata *arguments, // Command-line arguments167 const char *argName// Argument name in the command-line arguments164 psMetadata *options, // Target to which to add value 165 const char *recipeName, // Name for value in the recipe 166 psMetadata *arguments, // Command-line arguments 167 const char *argName // Argument name in the command-line arguments 168 168 ); 169 169 170 170 bool ppSimArgToRecipeBool(bool *status, 171 psMetadata *options, // Target to which to add value172 const char *recipeName, // Name for value in the recipe173 psMetadata *arguments, // Command-line arguments174 const char *argName// Argument name in the command-line arguments171 psMetadata *options, // Target to which to add value 172 const char *recipeName, // Name for value in the recipe 173 psMetadata *arguments, // Command-line arguments 174 const char *argName // Argument name in the command-line arguments 175 175 ); 176 176 … … 198 198 bool ppSimDefinePixels (psArray *sources, pmReadout *readout, psMetadata *recipe); 199 199 200 /// Return software version 201 psString ppSimVersion(void); 202 203 /// Return software source 204 psString ppSimSource(void); 205 206 /// Return long version information 207 psString ppSimVersionLong(void); 208 200 209 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
