From d9fb96533fae909ccb7fed617c60fdaa914737c1 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 18 Dec 2008 11:07:33 +0100 Subject: [PATCH] Rename xbps.sh to xbps-src.sh. In preparation for the utility that will handle binary packages. --HG-- extra : convert_revision : c67f42bccad28f1b5313ae0e1739979a477fd2f1 --- doc/README | 26 +++++++++++++------------- doc/TODO | 2 +- utils/sh/chroot.sh | 2 +- xbps.sh => xbps-src.sh | 0 4 files changed, 15 insertions(+), 15 deletions(-) rename xbps.sh => xbps-src.sh (100%) diff --git a/doc/README b/doc/README index dbac4411d9a..fd19f21fe00 100644 --- a/doc/README +++ b/doc/README @@ -62,7 +62,7 @@ To avoid problems with libtool and configure scripts finding stuff that is available in the host system, almost all packages must be built inside of a chroot. So the first thing would be to create the binary packages with: - $ xbps.sh install xbps-base-chroot + $ xbps-src.sh install xbps-base-chroot This will build all required packages via fakeroot in masterdir, therefore you can run it as normal user. Next commands will require super-user privileges @@ -72,7 +72,7 @@ be that xbps packages are meant to be used in a system and not just for ordinary users. So once all packages are built, you can create and enter to the chroot with: - $ sudo xbps.sh chroot + $ sudo xbps-src.sh chroot Press Control + D to exit from the chroot. The following targets will require to be done in the chroot: @@ -82,7 +82,7 @@ to be done in the chroot: Now let's explain some more about the targets that you can use. To start installing packages you should use the install target: - $ sudo xbps.sh install glib + $ sudo xbps-src.sh install glib If the package is properly installed, it will be "stowned" automatically. ``stowned´´ means that this package is available in the master directory, @@ -90,47 +90,47 @@ on which xpbs has copied all files from DESTDIR/. To remove a currently installed (and stowned) package, you can use: - $ sudo xbps.sh remove glib + $ sudo xbps-src.sh remove glib Please note that when you remove it, the package will also be removed from XBPS_DESTDIR and previously "unstowned". To stow an already installed package (from XBPS_DESTDIR/): - $ sudo xbps.sh stow glib + $ sudo xbps-src.sh stow glib and to unstow an already installed (stowned) package: - $ sudo xbps.sh unstow glib + $ sudo xbps-src.sh unstow glib You can also print some stuff about any template build file, e.g: - $ xbps.sh info glib + $ xbps-src.sh info glib To list installed (stowned) packages, use this: - $ xbps.sh list + $ xbps-src.sh list To only extract the distfiles, without configuring/building/installing: - $ xbps.sh extract foo + $ xbps-src.sh extract foo To not remove the build directory after successful installation: - $ sudo xbps.sh -C install blah + $ sudo xbps-src.sh -C install blah To only fetch the distfile: - $ xbps.sh fetch blah + $ xbps-src.sh fetch blah To only install the package, _without_ stowning it into the master directory: - $ sudo xbps.sh install-destdir blob + $ sudo xbps-src.sh install-destdir blob To list files installed by a package, note that package must be installed into destination directory first: - $ xbps.sh listfiles blob + $ xbps-src.sh listfiles blob ------------------------------------------------------------------------------ PERFORMANCE diff --git a/doc/TODO b/doc/TODO index 68223021a87..8193b3ba61a 100644 --- a/doc/TODO +++ b/doc/TODO @@ -1,4 +1,4 @@ -xbps.sh: +xbps-src.sh: * Personalized scripts per template to unpack distfiles. * Multiple URLs to download source distribution files, aliases, etc. Something like ${sourceforge} to pick up any specified mirror on the list. diff --git a/utils/sh/chroot.sh b/utils/sh/chroot.sh index b15bc65cb62..baefea69777 100644 --- a/utils/sh/chroot.sh +++ b/utils/sh/chroot.sh @@ -141,7 +141,7 @@ xbps_chroot_handler() [ -n "$only_destdir" ] && \ local lenv="install_destdir_target=yes" env in_chroot=yes ${lenv} chroot $XBPS_MASTERDIR \ - /xbps/xbps.sh $action $pkg + /xbps/xbps-src.sh $action $pkg fi msg_normal "Exiting from the chroot on $XBPS_MASTERDIR." umount_chroot_fs diff --git a/xbps.sh b/xbps-src.sh similarity index 100% rename from xbps.sh rename to xbps-src.sh