Created better structure of files
This commit is contained in:
parent
de302ef23c
commit
a996c5545e
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
/slt.tar.gz
|
||||
*~
|
28
Makefile
28
Makefile
@ -1,15 +1,25 @@
|
||||
|
||||
UPDATE_PATH=/srv/slt-update
|
||||
PACKAGES = slt1.tar.gz
|
||||
# UPDATE_PATH=/srv/slt-update
|
||||
PACKAGES = slt.tar.gz
|
||||
|
||||
all: package update
|
||||
all: package
|
||||
|
||||
package: $(PACKAGES)
|
||||
|
||||
.PHONY: slt1.tar.gz
|
||||
slt1.tar.gz:
|
||||
cd slt1 ; tar czf ../$@ *
|
||||
.PHONY: slt.tar.gz
|
||||
slt.tar.gz:
|
||||
cd slt ; tar czf ../$@ *
|
||||
|
||||
.PHONY: update
|
||||
update: $(PACKAGES)
|
||||
cp slt.xml slt1.tar.gz $(UPDATE_PATH)
|
||||
.PHONY: release
|
||||
release:
|
||||
./scripts/create-release.sh
|
||||
|
||||
.PHONY: upload
|
||||
upload:
|
||||
./scripts/create-update-xml.sh
|
||||
# rsync -a releases/ $UPDATE_PATH/rel
|
||||
|
||||
#
|
||||
# .PHONY: update
|
||||
# update: $(PACKAGES)
|
||||
# cp slt.xml slt1.tar.gz $(UPDATE_PATH)
|
||||
|
1
releases/.gitignore
vendored
Normal file
1
releases/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
*.tar.gz
|
19
scripts/create-release.sh
Executable file
19
scripts/create-release.sh
Executable file
@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
MAJOR=`cat serial/major`
|
||||
MINOR=`cat serial/minor`
|
||||
RELEASE=`cat serial/release`
|
||||
TOTRELEASE="$MAJOR.$MINOR.$RELEASE"
|
||||
|
||||
outname="releases/slt-$TOTRELEASE.tar.gz"
|
||||
|
||||
mkdir -p releases
|
||||
|
||||
# First check if the named release exists already
|
||||
if [ -f "$outname" ]; then
|
||||
echo "The file $outname existes already. Either remove the release from the folder manually or increase the release version."
|
||||
echo "Aborting."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cp slt.tar.gz "$outname"
|
0
scripts/create-update-xml.sh
Executable file
0
scripts/create-update-xml.sh
Executable file
1
serial/major
Normal file
1
serial/major
Normal file
@ -0,0 +1 @@
|
||||
0
|
1
serial/minor
Normal file
1
serial/minor
Normal file
@ -0,0 +1 @@
|
||||
0
|
1
serial/release
Normal file
1
serial/release
Normal file
@ -0,0 +1 @@
|
||||
1
|
Loading…
Reference in New Issue
Block a user