r2138 - jhalfs/trunk

manuel at linuxfromscratch.org manuel at linuxfromscratch.org
Mon Oct 31 17:55:48 PST 2005


Author: manuel
Date: 2005-10-31 18:55:47 -0700 (Mon, 31 Oct 2005)
New Revision: 2138

Added:
   jhalfs/trunk/Makefile
Modified:
   jhalfs/trunk/jhalfs
   jhalfs/trunk/jhalfs.conf
Log:
Added installation Makefile.

Added: jhalfs/trunk/Makefile
===================================================================
--- jhalfs/trunk/Makefile	2005-10-31 21:13:32 UTC (rev 2137)
+++ jhalfs/trunk/Makefile	2005-11-01 01:55:47 UTC (rev 2138)
@@ -0,0 +1,18 @@
+# Makefile to install jhalfs system-wide
+
+# Where the files will be installed
+BIN=/usr/bin
+CONFIG=/etc/jhalfs
+DATA=/usr/share/jhalfs
+
+# List of additional files
+DATAFILES=functions dump-lfs-scripts.xsl
+
+install:
+	install -v -d $(CONFIG)
+	install -v -d $(DATA)
+	sed 's|source jhalfs.conf|source $(CONFIG)/jhalfs.conf|' jhalfs > $(BIN)/jhalfs
+	chmod -v 744 $(BIN)/jhalfs
+	sed 's|XSL.|&$(DATA)/|;s|FILES..|&$(DATA)/|;/FILES/s| | $(DATA)/|g' jhalfs.conf > $(CONFIG)/jhalfs.conf
+	chmod -v 644 $(CONFIG)/jhalfs.conf
+	install -v -m 644 $(DATAFILES) $(DATA)

Modified: jhalfs/trunk/jhalfs
===================================================================
--- jhalfs/trunk/jhalfs	2005-10-31 21:13:32 UTC (rev 2137)
+++ jhalfs/trunk/jhalfs	2005-11-01 01:55:47 UTC (rev 2138)
@@ -981,7 +981,7 @@
 fi
 
 [[ ! -d $JHALFSDIR ]]        && mkdir -pv $JHALFSDIR
-[[ "$PWD" != "$JHALFSDIR" ]] && cp -v $0 $XSL $FILES $JHALFSDIR/
+[[ "$PWD" != "$JHALFSDIR" ]] && cp -v $FILES $JHALFSDIR/
 [[ ! -d $LOGDIR ]]           && mkdir -v $LOGDIR
 >$LOGDIR/$LOG
 

Modified: jhalfs/trunk/jhalfs.conf
===================================================================
--- jhalfs/trunk/jhalfs.conf	2005-10-31 21:13:32 UTC (rev 2137)
+++ jhalfs/trunk/jhalfs.conf	2005-11-01 01:55:47 UTC (rev 2138)
@@ -7,9 +7,11 @@
 declare -r SVN="svn://svn.linuxfromscratch.org"
 declare -r HTTP=http://ftp.lfs-matrix.net/pub/lfs/lfs-packages/conglomeration
 declare -r XSL=dump-lfs-scripts.xsl
-declare -r FILES="functions jhalfs.conf"
 declare -r LOG=000-jhalfs.log
 
+#--- Files that will be copied to $JHALFSDIR
+FILES="functions dump-lfs-scripts.xsl"
+
 #--- Mount point for the build
 BUILDDIR=/mnt/lfs
 




More information about the alfs-log mailing list