Browse Source

* more updates

peter 26 years ago
parent
commit
ad08b83b05
2 changed files with 9 additions and 7 deletions
  1. 2 2
      install/debian/fixdeb
  2. 7 5
      install/debian/rules

+ 2 - 2
install/debian/fixdeb

@@ -18,6 +18,6 @@ echo 'FPCVersion    : ' $FPCVERSION
 for i in $1/*.in
 for i in $1/*.in
 do
 do
   j=${i/.in/}
   j=${i/.in/}
-  sed -e s/'#FPCVERSION#'/$FPCVERSION/ $i > $j
-  sed -e s/'#PACKAGEVERSION#'/$PACKAGEVERSION/ $i > $j
+  sed -e s/'#FPCVERSION#'/$FPCVERSION/g $i > $j
+  sed -e s/'#PACKAGEVERSION#'/$PACKAGEVERSION/g $i > $j
 done
 done

+ 7 - 5
install/debian/rules

@@ -5,13 +5,15 @@
 export FPCMAKE=
 export FPCMAKE=
 export FPCDIR=
 export FPCDIR=
 
 
-# Get current dir
-PWD=$(shell pwd)
-
 # Documentation type to use pdf/html
 # Documentation type to use pdf/html
 DOCTYPE=pdf
 DOCTYPE=pdf
 
 
-INSTALL_VERSION=$(shell cat base/VERSION)
+# Get Package version and FPC version out of changelog file
+PACKAGEVERSION=$(shell head -n 1 debian/changelog | awk '{ print $$2 }' | tr -d '[()]')
+FPCVERSION=$(shell echo $(PACKAGEVERSION) | awk -F '-' '{ print $$1 }')
+
+# Get directories	
+PWD=$(shell pwd)
 BUILD_DIR=$(PWD)/debian/build
 BUILD_DIR=$(PWD)/debian/build
 INSTALL_DIR=$(PWD)/debian/tmp
 INSTALL_DIR=$(PWD)/debian/tmp
 NEWPP=$(PWD)/compiler/ppc386
 NEWPP=$(PWD)/compiler/ppc386
@@ -127,7 +129,7 @@ install-indep-stamp: debian-files build-indep
 	dh_testroot
 	dh_testroot
 	dh_clean
 	dh_clean
 
 
-	$(MAKE) -C docs $(DOCTYPE)install DOCINSTALLDIR=$(INSTALL_DIR)/usr/doc/fpc/$(INSTALL_VERSION)/
+	$(MAKE) -C docs $(DOCTYPE)install DOCINSTALLDIR=$(INSTALL_DIR)/usr/share/doc/fpc/$(FPCVERSION)/
 
 
 	touch install-indep-stamp
 	touch install-indep-stamp