aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2003-12-23 10:46:12 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2003-12-23 10:46:12 +0000
commit8d691f4d2ed693065fdf5565e39cb364dd87f09b (patch)
treef545c4f831393c9d11db4f9e8184af8441ced745
parent2edb16ab69a95b9d558d7dcb970adec49374e14a (diff)
downloadrpmdrake-8d691f4d2ed693065fdf5565e39cb364dd87f09b.tar
rpmdrake-8d691f4d2ed693065fdf5565e39cb364dd87f09b.tar.gz
rpmdrake-8d691f4d2ed693065fdf5565e39cb364dd87f09b.tar.bz2
rpmdrake-8d691f4d2ed693065fdf5565e39cb364dd87f09b.tar.xz
rpmdrake-8d691f4d2ed693065fdf5565e39cb364dd87f09b.zip
provide drak* names as well
-rw-r--r--Makefile4
-rwxr-xr-xrpmdrake4
2 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 2b1b3bd6..16c2f062 100644
--- a/Makefile
+++ b/Makefile
@@ -47,6 +47,10 @@ install: $(ALL)
ln -sf $(RELATIVE_SBIN)/rpmdrake-remove $(BINDIR)/rpmdrake-remove
ln -sf $(RELATIVE_SBIN)/MandrakeUpdate $(BINDIR)/MandrakeUpdate
ln -sf $(RELATIVE_SBIN)/edit-urpm-sources.pl $(BINDIR)/edit-urpm-sources.pl
+ ln -sf $(RELATIVE_SBIN)/rpmdrake $(BINDIR)/drakrpm
+ ln -sf $(RELATIVE_SBIN)/rpmdrake-remove $(BINDIR)/drakrpm-remove
+ ln -sf $(RELATIVE_SBIN)/MandrakeUpdate $(BINDIR)/drakrpm-update
+ ln -sf $(RELATIVE_SBIN)/edit-urpm-sources.pl $(BINDIR)/drakrpm-edit-media
install -d $(DATADIR)/rpmdrake/icons
install -m644 icons/*.png $(DATADIR)/rpmdrake/icons
install -m644 compssUsers.flat.default $(DATADIR)/rpmdrake
diff --git a/rpmdrake b/rpmdrake
index bba57d5a..34045dc0 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -49,8 +49,8 @@ $collation_locale =~ /UTF-8/ or setlocale(LC_COLLATE, "$collation_locale.UTF-8")
$MODE = 'install';
-$0 =~ m|/rpmdrake-remove$| and $MODE = 'remove';
-$0 =~ m|/MandrakeUpdate$| and $MODE = 'update';
+$0 =~ m|/remove$| and $MODE = 'remove';
+$0 =~ m|/update$|i and $MODE = 'update';
$MODE eq 'update' || "@ARGV" =~ /--root/ and require_root_capability();