Browse Source

Upload skel update

Eeems 11 years ago
parent
commit
88d234bc5e

+ 13 - 2
bin/repo-build

@@ -6,6 +6,8 @@ else
 fi;
 root="$(dirname $BASH_SOURCE)/..";
 . $root/etc/packages.conf
+rm -f $root/repo/latest/i686/*;
+rm -f $root/repo/latest/x86-64/*;
 for val in "${packages[@]}"; do
 	unset package;
 	declare -A package;
@@ -71,12 +73,21 @@ for val in "${packages[@]}"; do
 		echo -e "\tUp to Date";
 	fi;
 	cd $root/src/$name;
-	if ! ls $name-*-i686.pkg.tar.xz &> /dev/null ||  $build || $override;then
+	if ! ls $name-*-i686.pkg.tar.xz &> /dev/null || ! ls $name-*-x86-64.pkg.tar.xz &> /dev/null ||  $build || $override;then
 		echo -e "\tBuilding";
 		./build.sh
 		ls $name-*-i686.pkg.tar.xz | while read item; do
-			cp $item $root/repo/updates/$item;
+			cp $item $root/repo/updates/i686/$item;
+		done;
+		ls $name-*-x86-64.pkg.tar.xz | while read item; do
+			cp $item $root/repo/updates/x86-64/$item;
 		done;
 	fi;
+	ls $name-*-i686.pkg.tar.xz | while read item; do
+		cp $item $root/repo/latest/i686/$item;
+	done;
+	ls $name-*-x86-64.pkg.tar.xz | while read item; do
+		cp $item $root/repo/latest/x86-64/$item;
+	done;
 	echo -e "\tDone"
 done;

+ 5 - 0
bin/repo-update

@@ -1,4 +1,9 @@
 #!/bin/bash
+if [[ "$1" != "" ]];then
+	force=true;
+else
+	force=false;
+fi;
 root="$(dirname $BASH_SOURCE)/..";
 . $root/etc/sites.conf
 for val in "${sites[@]}"; do

+ 0 - 0
repo/updates/.gitignore → repo/latest/i686/.gitignore


+ 4 - 0
repo/latest/x86-64/.gitignore

@@ -0,0 +1,4 @@
+# Ignore everything in this directory
+*
+# Except this file
+!.gitignore

+ 4 - 0
repo/updates/i686/.gitignore

@@ -0,0 +1,4 @@
+# Ignore everything in this directory
+*
+# Except this file
+!.gitignore

+ 4 - 0
repo/updates/x86-64/.gitignore

@@ -0,0 +1,4 @@
+# Ignore everything in this directory
+*
+# Except this file
+!.gitignore

+ 4 - 0
skel/i686/.gitignore

@@ -0,0 +1,4 @@
+# Ignore everything in this directory
+*
+# Except this file
+!.gitignore

+ 4 - 4
skel/index.php

@@ -1,14 +1,14 @@
 <?php
 	echo file_get_contents('templates/header.template');
-	$db = scandir('phar://'.getcwd().'/x86_64/omni.db');
+	$db = scandir('phar://'.getcwd().'/x86-64/omni.db');
 	$dir1 = scandir(getcwd().'/i686');
-	$dir2 = scandir(getcwd().'/x86_64');
+	$dir2 = scandir(getcwd().'/x86-64');
 	foreach($db as $file) {
-		$desc = file_get_contents('phar://'.getcwd().'/x86_64/omni.db/'.$file.'/desc');
+		$desc = file_get_contents('phar://'.getcwd().'/x86-64/omni.db/'.$file.'/desc');
 		$desc = substr($desc,strrpos($desc,'%DESC%')+7,strlen($desc)-strrpos($desc,'%DESC%')-(strlen($desc)-strpos($desc,'%CSIZE%'))-7);
 		echo "<h2>$file</h2><p><h4>{$desc}</h4> :: Downloads<br/>";
 		echo " => <a href='i686/$file-i686.pkg.tar.xz'>i686</a><br/>";
-		echo " => <a href='x86_64/$file-x86_64.pkg.tar.xz'>x86_64</a><br/>";
+		echo " => <a href='x86-64/$file-x86-64.pkg.tar.xz'>x86-64</a><br/>";
 		echo "</p>";
 	}
 	echo file_get_contents('templates/footer.template');

+ 4 - 0
skel/x86-64/.gitignore

@@ -0,0 +1,4 @@
+# Ignore everything in this directory
+*
+# Except this file
+!.gitignore