1. VectorLinux Core
  2. vabs

Commits

Jason Pierce  committed 812d445

Rename references from vlabs to vabs. Fix #1.

  • Participants
  • Parent commits 8b96cf4
  • Branches veclinux-7.1

Comments (0)

Files changed (4)

File README

View file
  • Ignore whitespace
 or
 search.php?pkg=PKGNAME&loc=LOCATION
 
-Valid options for LOCATION include "vlabs", "abs", and "sb".
+Valid options for LOCATION include "vabs", "abs", and "sb".
 
 Current demo PKGNAME include "bash", and "bashburn".

File search-vabs.sh

View file
  • Ignore whitespace
+#!/bin/sh
+pkgname="$1";
+abs_dir="./var/vabs/";
+
+
+find "$abs_dir" -name "$pkgname";

File search-vabs.sh.txt

View file
  • Ignore whitespace
+search-vabs.sh

File search.php

View file
  • Ignore whitespace
 <?php
 $loc_list = array(
-	'vlabs' => 'search-vlabs.sh',
+	'vabs' => 'search-vabs.sh',
 	'abs' => 'search-abs.sh',
 	'sb' => 'search-sb.sh' );
 
 
 if( ! isset( $_REQUEST['pkg'] ) ) {
 	echo "<p>Usage: <br> search.php?pkg=PKGNAME <br> or <br> search.php?pkg=PKGNAME&loc=LOCATION</p> \n";
-	echo "<p>Valid options for LOCATION include \"vlabs\", \"abs\", and \"sb\".</p> \n";
+	echo "<p>Valid options for LOCATION include \"vabs\", \"abs\", and \"sb\".</p> \n";
 	echo $end;
 	exit;
 } else {
 }
 
 if( ! isset( $_REQUEST['loc'] ) ) {
-	$loc = 'vlabs';
+	$loc = 'vabs';
 } else {
 	if( ! array_key_exists( $_REQUEST['loc'], $loc_list ) ) {
 		echo '<p>Specified location unknown. Using default location.</p>';