Skip to content

Commit

Permalink
Update helper scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
gabordemooij committed Dec 9, 2021
1 parent 6a69ed0 commit a4939f2
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 11 deletions.
2 changes: 1 addition & 1 deletion i18n/nl/msg.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#define CTR_MSG_LANG_CODE "nl"
#define CTR_MSG_WELCOME "De Programmeertaal Citrine/NL\n"
#define CTR_MSG_COPYRIGHT "Geschreven door Gabor de Mooij © alle rechten voorbehouden 2019, BSD Licentie.\n"
#define CTR_MSG_COPYRIGHT "Geschreven door Gabor de Mooij ©, BSD Licentie.\n"
#define CTR_MSG_USAGE_G "Niet genoeg argumenten. Gebruik alsvolgt: ctr -g bestand1.h bestand2.h"
#define CTR_MSG_USAGE_T "Niet genoeg argumenten. Gebruik alsvolgt: ctr -t d.dict programma.ctr"
#define CTR_ERR_LEX "%s op regel: %d. \n"
Expand Down
6 changes: 3 additions & 3 deletions misc/downloadmaker.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
OS="linux"
V="0.9.5"
V="0.9.4"
for FILE in $(ls downloads/linux)
do
echo "<li><a href=\"/downloads/iso/linux/${FILE}\">${FILE}</a></li>"
Expand All @@ -20,8 +20,8 @@ for FILE in $(ls downloads/windows64)
do
echo "<li><a href=\"/downloads/iso/windows64/${FILE}\">${FILE}</a></li>"
done
for FILE in $(ls downloads/haiku)
for FILE in $(ls downloads/Haiku)
do
echo "<li><a href=\"/downloads/iso/haiku/${FILE}\">${FILE}</a></li>"
echo "<li><a href=\"/downloads/iso/Haiku/${FILE}\">${FILE}</a></li>"
done

4 changes: 2 additions & 2 deletions misc/isopack.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
OS="linux"
V="0.9.3"
V="0.9.4"
for ISO in $(ls ../i18n)
do
#Remove previous working dir
Expand All @@ -15,7 +15,7 @@ do
#Copy license
cp ../LICENSE /tmp/dist/
#Copy binary
cp ../bin/Linux/ctr${ISO} /tmp/dist/bin/ctr${ISO}
cp ../bin/Linux/ctr${ISO} /tmp/dist/bin/ctr${ISO}
#Copy examples
cp ../examples/${ISO}/* /tmp/dist/examples/
#Copy font
Expand Down
29 changes: 29 additions & 0 deletions misc/isopackhaiku.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
OS="Haiku"
V="0.9.4"
for ISO in $(ls ../i18n)
do
#Remove previous working dir
rm -rf /tmp/dist
#Create folder structure
mkdir /tmp/dist
mkdir /tmp/dist/bin
mkdir /tmp/dist/examples
mkdir /tmp/dist/fonts
mkdir /tmp/dist/mods
mkdir /tmp/dist/mods/request
mkdir /tmp/dist/mods/json
#Copy license
cp ../LICENSE /tmp/dist/
#Copy binary
cp ../bin/${OS}/ctr${ISO} /tmp/dist/bin/ctr${ISO}
#Copy examples
cp ../examples/${ISO}/* /tmp/dist/examples/
#Copy font
cp ../fonts/Citrine.ttf /tmp/dist/fonts/
#Copy mods
cp ../bin/${OS}/libctrjson.so /tmp/dist/mods/json/
#Archive
tar cvzf citrine${V}-${OS}-${ISO}.tar.gz -C /tmp dist
#Sign
signify-openbsd -Sz -s keys/privatekey.sec -m citrine${V}-${OS}-${ISO}.tar.gz -x downloads/${OS}/citrine${V}-${OS}-${ISO}.tgz
done
10 changes: 5 additions & 5 deletions misc/isopackobsd.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
OS="OpenBSD"
V="0.9.3"
V="0.9.4"
for ISO in $(ls ../i18n)
do
#Remove previous working dir
Expand All @@ -15,16 +15,16 @@ do
#Copy license
cp ../LICENSE /tmp/dist/
#Copy binary
cp ../bin/${OS}/ctr${ISO} /tmp/dist/bin/ctr${ISO}
cp ../bin/${OS}/ctr${ISO} /tmp/dist/bin/ctr${ISO}
#Copy examples
cp ../examples/${ISO}/* /tmp/dist/examples/
#Copy font
cp ../fonts/Citrine.ttf /tmp/dist/fonts/
#Copy mods
cp ../mods/${OS}/request/libctrrequest.so /tmp/dist/mods/request/
cp ../mods/${OS}/json/libctrjson.so /tmp/dist/mods/json/
cp ../mods/request/libctrrequest.so /tmp/dist/mods/request/
cp ../mods/json/libctrjson.so /tmp/dist/mods/json/
#Archive
tar cvzf citrine${V}-${OS}-${ISO}.tar.gz -C /tmp dist
#Sign
signify-openbsd -Sz -s keys/privatekey.sec -m citrine${V}-${OS}-${ISO}.tar.gz -x downloads/${OS}/citrine${V}-${OS}-${ISO}.tgz
signify -Sz -s keys/privatekey.sec -m citrine${V}-${OS}-${ISO}.tar.gz -x downloads/${OS}/citrine${V}-${OS}-${ISO}.tgz
done

0 comments on commit a4939f2

Please sign in to comment.