summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorFlorent Villard <warly@mandriva.com>2003-09-05 11:42:20 +0000
committerFlorent Villard <warly@mandriva.com>2003-09-05 11:42:20 +0000
commite4371f18753c98687f71de82810acc79428c51f9 (patch)
tree0fea71ac6b4e25072165c79f2c9e5e0d4ca3f28d /Makefile
parent8dd32f86a6e97fa103be7155f5784c3dd3166308 (diff)
downloaddrakwizard-e4371f18753c98687f71de82810acc79428c51f9.tar
drakwizard-e4371f18753c98687f71de82810acc79428c51f9.tar.gz
drakwizard-e4371f18753c98687f71de82810acc79428c51f9.tar.bz2
drakwizard-e4371f18753c98687f71de82810acc79428c51f9.tar.xz
drakwizard-e4371f18753c98687f71de82810acc79428c51f9.zip
*** empty log message ***
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
1 files changed, 20 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 216d82b5..a4de6348 100644
--- a/Makefile
+++ b/Makefile
@@ -32,8 +32,8 @@ install:
mkdir -p --mode=u=rwx,g=rx,o=rx ${prefix}/share/wizards/client_wizard/images
mkdir -p ${prefix}/$(PERL_VENDORLIB)/MDK/Wizard/
install -p drakwizard.pl ${prefix}/sbin/drakwizard
- perl -i -pe "s|__WIZ_HOME__|$(WIZ_HOME)/|g" ${prefix}/sbin/drakwizard
- perl -i -pe "s|\$::DEBUG = 1|\$::DEBUG = 0|g" ${prefix}/sbin/drakwizard
+ perl -i -pe "s|__WIZ_HOME__|$(WIZ_HOME)/|g; s|$$ENV{__WIZ_HOME__}|$(WIZ_HOME)/|g" ${prefix}/sbin/drakwizard
+ perl -i -pe "s|new IFCFG|new MDK::Wizard::IFCFG|g" common/Wizcommon.pm
for l in $(OTHER); do \
$(MAKE) -C $$l $@; \
done
@@ -43,18 +43,33 @@ install:
install --mode=a=r -p $$l/images/*.png ${prefix}/share/wizards/client_wizard/images; \
done
find ${prefix}/share/wizards -type f -regex ".*\.wiz$$\|.*.pm$$\|.*\.sh$$" -exec \
- perl -i -pe "s|__WIZ_HOME__|$(WIZ_HOME)|g" \{\} \;
+ perl -i -pe "s|__WIZ_HOME__|$(WIZ_HOME)|g; s|$$ENV{__WIZ_HOME__}|$(WIZ_HOME)/|g" \{\} \;
clean:
$(MAKE) -C po $@
rm -f *~
-tar: clean
+dis: clean
cd ..; cp -rf wizard_perl $(NAME)
cd ..; tar cf - $(NAME) | bzip2 -9 > $(TAR)
cd ..; rm -rf $(NAME)
-rpm: tar
+changelog: ../common/username
+ ( cvs2cl -U ../common/username -I ChangeLog -I tmp/ ; \
+ rm -f ChangeLog.bak ; \
+ cvs commit -m "Generated by cvs2cl the `date '+%c'`" ChangeLog ; \
+ )
+
+cvstag:
+ cvs commit
+ cvs tag $(RELTAG)
+
+rpm: changelog cvstag dis ../$(NAME)-$(VERSION).tar.bz2 $(RPM)
+ cp -f ../$(NAME)-$(VERSION).tar.bz2 $(RPM)/SOURCES
+ -rpm -ba --clean $(NAME).spec
+ rm -f ../$(NAME)-$(VERSION).tar.bz2
+
+localrpm: dis
cp -f ../$(TAR) $(RPM)/SOURCES
cp -f $(NAME).spec $(RPM)/SPECS/
-rpm -ba $(NAME).spec