first upload

master
TheZenKitteh 2013-01-15 20:54:08 -05:00
commit f73fe396b9
20 changed files with 199 additions and 0 deletions

75
LICENSE.txt Normal file
View File

@ -0,0 +1,75 @@
All bash scripting falls under the
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.
===========================================================================
7-Zip
~~~~~
License for use and distribution
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7-Zip Copyright (C) 1999-2012 Igor Pavlov.
Licenses for files are:
1) 7z.dll: GNU LGPL + unRAR restriction
2) All other files: GNU LGPL
The GNU LGPL + unRAR restriction means that you must follow both
GNU LGPL rules and unRAR restriction rules.
Note:
You can use 7-Zip on any computer, including a computer in a commercial
organization. You don't need to register or pay for 7-Zip.
GNU LGPL information
--------------------
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You can receive a copy of the GNU Lesser General Public License from
http://www.gnu.org/
unRAR restriction
-----------------
The decompression engine for RAR archives was developed using source
code of unRAR program.
All copyrights to original unRAR code are owned by Alexander Roshal.
The license for original unRAR code has the following restriction:
The unRAR sources cannot be used to re-create the RAR compression algorithm,
which is proprietary. Distribution of modified unRAR sources in separate form
or as a part of other software is permitted, provided that it is clearly
stated in the documentation and source comments that the code may
not be used to develop a RAR (WinRAR) compatible archiver.
--
Igor Pavlov

2
Mod-Backups/readme.txt Normal file
View File

@ -0,0 +1,2 @@
All mod backups will be stored here until you
manually delete them.

BIN
Mod-Packing-Directory/7z Executable file

Binary file not shown.

BIN
Mod-Packing-Directory/7z.so Executable file

Binary file not shown.

View File

@ -0,0 +1,2 @@
All mods packed with the packmod script
will be stored here.

View File

@ -0,0 +1,7 @@
Put your properly named mod folder inside this folder
then run:
./packmod.sh modname modname_version
Example:
./packmod.sh fakeblocks fakeblocks_0.0.3

View File

@ -0,0 +1,19 @@
#!/bin/bash
#
# Packs your mod to work with the modinstaller script included here
#
# How to use:
# chmod u+x scriptname
# then
# ./scriptname modname modname_version
#
# Example:
# ./packmod industrial industrial_0.0.5
#
# IMPORTANT: your mod folder must be properly named
# such as industrial and not industrial-master or anything else
# Packaging
./7z a -t7z -mx9 ./Packed-Mods/"$2".7z "$1"
echo "check to make sure mod was packed correctly"

31
README.txt Normal file
View File

@ -0,0 +1,31 @@
These scripts allow you to easily install and
update mods from a repo. packmod also is used
to pack your mod for use with the installer and
compresses to 7z archive.
mtmodinstall:
# How to use:
# Update REPO URL if needed then
# chmod u+x nameofscript
# issue ./nameofthisscript modname
#
# Example:
# ./mtmodinstall.sh industrial
packmod:
# Packs your mod to work with the modinstaller script included here
#
# How to use:
# chmod u+x scriptname
# then
# ./scriptname modname modname_version
#
# Example:
# ./packmod industrial industrial_0.0.5
#
# IMPORTANT: your mod folder must be properly named
# such as industrial and not industrial-master or anything else
make-packageslist:
Just run it to make a packages.txt

BIN
Repo/christmas_2012.7z Normal file

Binary file not shown.

BIN
Repo/fakeblocks_0.0.1.7z Normal file

Binary file not shown.

BIN
Repo/industrial_0.0.7.7z Normal file

Binary file not shown.

BIN
Repo/jail_0.0.1.7z Normal file

Binary file not shown.

5
Repo/make-packageslist.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash
rm packages.txt
ls -d -- * > packages.txt
echo "Package list compiled."

BIN
Repo/moarcraft_0.0.1.7z Normal file

Binary file not shown.

8
Repo/packages.txt Normal file
View File

@ -0,0 +1,8 @@
christmas_2012.7z
fakeblocks_0.0.1.7z
industrial_0.0.7.7z
jail_0.0.1.7z
make-packageslist.sh
moarcraft_0.0.1.7z
replicator_0.2.0.7z
various_0.0.4.7z

BIN
Repo/replicator_0.2.0.7z Normal file

Binary file not shown.

BIN
Repo/various_0.0.4.7z Normal file

Binary file not shown.

1
VERSION.txt Normal file
View File

@ -0,0 +1 @@
1

49
mtmodinstall.sh Executable file
View File

@ -0,0 +1,49 @@
#!/bin/bash
#
# How to use:
# Update REPO URL if needed then
# chmod u+x nameofscript
# issue ./nameofthisscript modname
#
# Example:
# ./mtmodinstall.sh industrial
#
# License:
# Version: 1
# Chane below to the location of your minetest mods folder
#INSTALLLOC="$HOME/.minetest/usermods"
INSTALLLOC="./mods/minetest"
# Putting the location of this script into a variable
SLOC=$(pwd)
# Getting current date
NOW=$(date +"%m_%d_%Y--%H:%M:%S")
# Change REPO URL to match your preferred repo
REPO="http://onisamadojo.net:8088/minetest/"
# Fetching packages list
rm ./packages.txt
wget "$REPO"packages.txt
# Get full mod name for use in URL and extraction
MOD=$(grep -i "$1" ./packages.txt)
# fetching desired package
wget "$REPO""$MOD"
# Backing up old mod
cd "$INSTALLLOC"
"$SLOC"/7z a -t7z -mx9 "$SLOC"/Mod-Backups/"$1""$NOW".7z "$1"
rm -rf "$1"
cd "$SLOC"
# Extracting mod to mod folder
./7z x "$MOD" -o"$INSTALLLOC"
# Cleaning up
rm "$MOD"
echo "All done.. check to make sure mod is indeed installed at "$INSTALLLOC""