Commit 1c8fb8eb authored by sebt3's avatar sebt3

fix makeprj not exporting PRJ

parent d7d12773
......@@ -45,33 +45,33 @@ pyra_setprj() {
}
pyra_makeprj() {
local PRJ=$1
local prj=$1
[ $# -lt 1 ] && return 1
if [ ! -d "$PROJECTS_BASEDIR/$PRJ" ];then
mkdir -p "$PROJECTS_BASEDIR/$PRJ/target/meta" "$PROJECTS_BASEDIR/$PRJ/target/icons" "$PROJECTS_BASEDIR/$PRJ/target/root"
cat >"$PROJECTS_BASEDIR/$PRJ/target/meta/default.desktop" <<ENDDESK
if [ ! -d "$PROJECTS_BASEDIR/$prj" ];then
mkdir -p "$PROJECTS_BASEDIR/$prj/target/meta" "$PROJECTS_BASEDIR/$prj/target/icons" "$PROJECTS_BASEDIR/$prj/target/root"
cat >"$PROJECTS_BASEDIR/$prj/target/meta/default.desktop" <<ENDDESK
[Desktop Entry]
Version=
Type=Application
Categories=
Name=$PRJ
Name=$prj
Comment=
Exec=$PRJ
Icon=${PRJ}.png
Exec=$prj
Icon=${prj}.png
Terminal=false
StartupNotify=false
X-MultipleArgs=false
[Package Entry]
Id=$PRJ
Id=$prj
Arch=armhf
Exec=$PRJ
Exec=$prj
Name=
Version=
Icon=${PRJ}.png
Icon=${prj}.png
ENDDESK
fi
pyra_setprj $PRJ
pyra_setprj $prj
}
# Help to configure stuff
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment