Index: /tags/ipp-ops-20220906/ippconfig/Makefile.am
===================================================================
--- /tags/ipp-ops-20220906/ippconfig/Makefile.am	(revision 42726)
+++ /tags/ipp-ops-20220906/ippconfig/Makefile.am	(revision 42727)
@@ -62,2 +62,28 @@
 ipprc.config: $(srcdir)/ipprc.config.in
 dvo.site: $(srcdir)/dvo.site.in
+
+
+TGTDIR  = $(PSCONFDIR)/$(PSCONFIG)/etc
+SRC	= 	compress
+TGT	= 	$(TGTDIR)/compress.mgc
+
+install: $(TGT)
+build:   $(MGC)
+
+if HAVE_LINUX
+MES = YesLINUX
+MGC = compress.mgc
+else
+MES = StillNoLINUX
+MGC = gentoo
+endif
+
+$(TGT): $(MGC)
+	cp $(MGC) $(TGT)     
+
+test: $(TGT)
+	file o60523g0045o.2132764.wrp.2688740.skycell.1566.004.pswarp.mdc
+	file -m $(TGT) o60523g0045o.2132764.wrp.2688740.skycell.1566.004.pswarp.mdc
+
+prt: 
+	@echo $(MES)
Index: /tags/ipp-ops-20220906/ippconfig/configure.ac
===================================================================
--- /tags/ipp-ops-20220906/ippconfig/configure.ac	(revision 42726)
+++ /tags/ipp-ops-20220906/ippconfig/configure.ac	(revision 42727)
@@ -6,4 +6,7 @@
 AM_INIT_AUTOMAKE([1.6 foreign dist-bzip2])
 AM_MAINTAINER_MODE
+
+AM_CONDITIONAL([HAVE_GENTOO], [test -f /etc/gentoo-release])
+AM_CONDITIONAL([HAVE_LINUX], [test -f /etc/os-release])
 
 AC_PROG_INSTALL
Index: /tags/ipp-ops-20220906/ippconfig/gpc1/camera.config
===================================================================
--- /tags/ipp-ops-20220906/ippconfig/gpc1/camera.config	(revision 42726)
+++ /tags/ipp-ops-20220906/ippconfig/gpc1/camera.config	(revision 42727)
@@ -5,5 +5,4 @@
 	MEF		STR	gpc1/format_mef.config
 	RELPHOT		STR	gpc1/format_relphot.config
-	RAW_20220827	STR	gpc1/format_20220827.config
 	RAW_20100723	STR	gpc1/format_20100723.config
 	RAW_20100228	STR	gpc1/format_20100228.config
Index: /tags/ipp-ops-20220906/ippconfig/notes.txt
===================================================================
--- /tags/ipp-ops-20220906/ippconfig/notes.txt	(revision 42726)
+++ /tags/ipp-ops-20220906/ippconfig/notes.txt	(revision 42727)
@@ -1,16 +1,53 @@
 
-creating a new camera:
+This is the home web page for the file command:
 
-* add the camera to the CAMERAS list (ipp/ippconfig/ipprc.config)
-* create the camera directory (ipp/ippconfig/CAMERA)
-* copy example recipe files from a similar camera (eg, ipp/ippconfig/megacam)
-* copy Makefile.am from a similar camera (eg, ipp/ippconfig/megacam)
-* edit camera.config to describe your camera
-  - list the ccds and chips in FPA METADATA
-  - list the filters of interest (header name STR internal name)
-    give all varients used in the headers
-  - fix paths which refer to the original paths.
-* edit the format*.config files to match your camera:
-  - set up a rule to recognize the camera
-    - define keywords which will uniquely recognize your headers
-     
+  https://www.darwinsys.com/file/
+
+Here is their github page.
+
+  https://github.com/file/file/tree/master/magic/Magdir
+
+I used this tool to download just the Magdir directory:
+
+  https://download-directory.github.io/
+
+For reasons unknown, several of the files in that directory raise errors when compiling
+the magic file.  Running this command generates a list of errors:
+
+  file -m Magdir -C
+
+I remove the files listed in the error messages:
+
+ mkdir -p trash
+ rsync -auv Magdir/ myMagdir/
+ foreach f ( `file -m myMagdir -C | & awk -F, '{print $1}' | sort | uniq | grep myMagdir` )
+   mv $f trash/
+ end
+
+Then compile this new directory: 
+
+  file -m myMagdir -C
+
+We can use the new magic file:
+
+  file -m myMagdir.mgc o60523g0045o.2132764.wrp.2688740.skycell.1566.004.pswarp.mdc
+
+Fortuitously, the "DOS/MBR boot sector" magic numbers are among these files which
+do not compile, specifically in Magdir/filesystems
+
+The new magic file (myMagdir.mgc) is rather large: 5.3MB.  
+
+Within the IPP, we use the command 'file' in order to distinguish compressed MDC files
+from uncompressed files.  For this purpose, we only need a magic file built using the
+file Magdir/compress:
+
+  cp myMagdir/compress .
+  file -m compress -C
+
+This yields 'compress.mgc'
+
+Unfortunately, the same magic file cannot be used by the binaries on both Ubuntu and Gentoo.
+
+So, to address the specific IPP issue, we need to install a different version of the
+file in some discoverable / defined location which depends on the build architecture.
+
