PolyProg / archive-diverse-scripts

Old, obsolete scripts for generating diplomas, slides etc.
0 stars 1 forks source link

Get correct numbering for problem sets on Domjudge #3

Open zommerfelds opened 8 years ago

zommerfelds commented 8 years ago

The script makes all problems have number "A"

Sjlver commented 8 years ago

IIRC, this can happen on Mac OS due to the way sed is invoked. Sed is used to rename the files I think. On Linux, "sed -i 's/a/b/'" does what you think it does. On Mac, it thinks 's/a/b/' is the backup extension.

On Sat, Oct 8, 2016, 15:03 Christian Z. notifications@github.com wrote:

The script makes all problems have number "A"

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/PolyProg/diverse-scripts/issues/3, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEZe-VxuTEItIGkzWzHAWTYpC2Zr8m4ks5qx5SfgaJpZM4KRtzM . {"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/PolyProg/diverse-scripts","title":"PolyProg/diverse-scripts","subtitle":"GitHub repository","main_image_url":" https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png ","avatar_image_url":" https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/PolyProg/diverse-scripts"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"Get correct numbering for problem sets on Domjudge (#3)"}],"action":{"name":"View Issue","url":" https://github.com/PolyProg/diverse-scripts/issues/3"}}}

zommerfelds commented 8 years ago

It didn't work on Linux either. The problem is that it looks at each problem separately and so the counter is always at zero. Not sure if this ever worked.

On Sat, Oct 8, 2016, 17:52 Jonas Wagner notifications@github.com wrote:

IIRC, this can happen on Mac OS due to the way sed is invoked. Sed is used to rename the files I think. On Linux, "sed -i 's/a/b/'" does what you think it does. On Mac, it thinks 's/a/b/' is the backup extension.

On Sat, Oct 8, 2016, 15:03 Christian Z. notifications@github.com wrote:

The script makes all problems have number "A"

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/PolyProg/diverse-scripts/issues/3, or mute the thread < https://github.com/notifications/unsubscribe-auth/AAEZe-VxuTEItIGkzWzHAWTYpC2Zr8m4ks5qx5SfgaJpZM4KRtzM

.

{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/PolyProg/diverse-scripts","title":"PolyProg/diverse-scripts","subtitle":"GitHub repository","main_image_url":"

https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png ","avatar_image_url":"

https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png ","action":{"name":"Open in GitHub","url":"https://github.com/PolyProg/diverse-scripts "}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"Get correct numbering for problem sets on Domjudge (#3)"}],"action":{"name":"View Issue","url":" https://github.com/PolyProg/diverse-scripts/issues/3"}}}

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/PolyProg/diverse-scripts/issues/3#issuecomment-252432093, or mute the thread https://github.com/notifications/unsubscribe-auth/ABM8Tte2s6hEpb2m3_OOZWgnNVDuIFrAks5qx7whgaJpZM4KRtzM .